Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to install Fonts with FoxPro on Win95/98
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00144506
Message ID:
00144693
Views:
25
>Ok ! After i done some recherche this is the way I found.
>
>We can check if our font are install be checking in the c:\windows\fonts dir. or by checking in the registry for:
>
>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts
>
>To install, you only have to copy the fonts in c:\windows\fonts and register the font in the registry.

Hi Jean-Rene,

While you can do this, I don't believe that it's recommended. For example, fonts have a number of characteristics (such as the font family) which you cannot determine from simply the file name. In order to prevent duplication or to determine that a font doesn't exist, you'd have to call the EnumFontFamilies() API function. Unfortunately, this function requires the address of a callback function, which you can't do in VFP. Alternately you can call AddFontResource() followed by SendMessage() to load the font file and notify other apps as the application requires. Prior to termination, the app should call RemoveFontResource() to unload the font.
George

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

Click here to load this message in the networking platform