Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fonts question
Message
 
To
01/11/1999 13:49:28
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00284941
Message ID:
00284950
Views:
14
>Is there a Win32 routine to check and install a particular font
>before running a vfp compiled program.

Hi Eric,

The necessary function to check for the existence of a font requires that the call provide the address of a function that will be called back. Unfortunately, this isn't available from within VFP. There is a great deal of information on installing fonts (what needs to be done, what functions to call, etc.) in the Win32 Platform SDK. One of the steps is to use one of these functions to determine if the font exsists.

What I'd suggest is temporarily adding the font via AddFontResource() when the program starts, then using RemoveFontResource() when the program terminates. You'll also need a SendMessage() call for each using HWND_BROADCAST as the window handle and passing the WM_FONTCHANGE.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform