Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Install font with API
Message
De
10/03/1998 13:30:47
 
 
À
10/03/1998 13:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00083698
Message ID:
00083703
Vues:
28
>Can anyone please show me some VFP5 code to install the foxfont.fon font programmatically using the API.
>
>I know it uses the AddFontResource function but I would love to see the solution if someone has it available.
>
>Thanks,

DECLARE INTEGER AddFontResource IN win32api STRING
LOCAL lc_font, ln_Return
*&& you will also have to include the path on foxfont.fon
lc_font = 'foxfont.fon' + CHR(0)
ln_return = AddFontResource(@lc_font)
IF ln_return = -1
=MESSAGEBOX('Font No Installed')
ENDIF

I think this is how it works, but I never tested it.

Charles
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform