Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to install a font progamatically???
Message
 
To
05/04/2000 20:03:20
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00355663
Message ID:
00356009
Views:
21
Hi Calvin --

>>>
Erik,
I tried your recommendation and the font went into the fonts folder without any problem, but it did not show up on the font list in programs. This is a Win2000 machine. I did a restart and still did not show up. I copied the fonts to another directory and then deleted them from the font folder and then used the install font procedure and then they worked. Did you have to go throught this procedure or did just copying the font work for you. I think I still need something programatic to make the font show up without user interaction.
<<<

That's really odd, as I've seen this work quite often. Well, to cover all bases, after copying it into the Fonts folder, make Windows happy and place a call to AddFontResource. Then, broadcast WM_FONTCHANGE so all running apps can update any caching they're doing.

A few relevant links:
http://msdn.microsoft.com/library/psdk/gdi/fontext_9r51.htm
http://support.microsoft.com/support/kb/articles/q112/6/72.asp

Later... Karl
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform