Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I'm creating a word template for some users, and I need to use "MT Extra" font, which I know is common for all word versions, but I need to be sure that it's installed because at the time of word installation user my choose not to install any font!

So can I add a VBA piece of code to install this font on user's machine, whatever the setting of machine are ?? (32/64 bit or whatever).

Thanks in advance.
Posted

1 solution

It would be impossible for at least 2 reasons...

1. Font must be installed via Font Control Panel in Windows
Microsoft wrote:

Downloading and installing new fonts



Once you have found a new font that you would like to use with an Office program, you need to download the font from the Internet and install it through the operating system that you are currently using on your computer. Because fonts work with the operating system, they are not downloaded to Office directly. You should use the Font Control Panel in Windows, and then the font will work with Office automatically.

Note Many third parties outside of Microsoft package their fonts in .zip files to reduce file size and make downloading faster. If you have downloaded a font that is saved in .zip format, you can "unzip" it by double-clicking the icon for the font and following the instructions on the screen.

source: Add new fonts to use with Office[^]

2. System Security Restriction (SSR)
If user account is standard windows account, user might have enough permission to change anything via Control Panel.


You can go arround with it by copying font from one computer to another one[^], but... one more time we will be dealing with SSR (see point 2).

Finally, you can embed 'subset fonts' to the document. Please see: Document.SaveAs[^] - with EmbedTrueTypeFonts = True
Creating Document Themes with the Office Open XML Formats[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900