Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Fonts
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00084474
Message ID:
00084489
Vues:
30
>>>Can anyone enlighten me on a Win32 call to register fonts in Win95/NT?
>>>
>>>Thanks
>>>
>>>Wayne
>>
>>Just to expand a bit on what Ed told you, AddFontResource does not install the font. It simply allows the application calling the function to use it. Further, if a call to SendMessage is not made, no other application will have access to it. The function returns the number of fonts loaded. It is not limited to True Type Fonts (TTF files, which are raw), but can also be used to load a .FON font resource file, a .FNT raw bitmap font file, or a .FOT TrueType resource file.
>>
>>hth,
>
>Well, is there a call to actually install the font? I am attempting to install fonts that a user's machine may or may not have.
>
>I previously tried Edward's suggestion, and did not see any results of the call.
>***AddFontResource, RemoveFontResource
> DECLARE INTEGER AddFontResource IN win32api STRING
> =AddFontResource("some.ttf")
>
>
>Am I missing something here?
>
>Wayne

Firstly, user's machine should get physical file, i.e. you distribute the file with VFP installation package and the use API call to register it.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform