Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fonts question
Message
 
À
01/11/1999 13:49:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00284941
Message ID:
00284950
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform