Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I install my own font?
Message
 
 
À
16/01/2001 12:02:24
Zoltan Hermann
Unit Informatics Ltd.
Budapest, Hongrie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00464252
Message ID:
00464339
Vues:
19
>Hi, I need a quick help.
>I use a non-standard font in my application, and I need to intall it to the client's computer. This would be a universal setup application created with the VFP6 setup wizard. Is it possible to install it with my application's files?
>
>I need a really fast help...

You have to copy it to the Windows/Font directory. Of course, the problem is that the Windows directory is not always in the same place. In NT it is generally WINNT (in this machine is just NT), and so on...

But you can get to where it actually is trought the Window Scripting Host:
loShell = CreateObject( "WScript.Shell" )
? loShell.SpecialFolders("Fonts")
So you can make an executable and launch it at the end of the installation (the setup wizard allows you to do that), that copies your fonts there.

Just remember that to be sure that WSH is installed your client machines have to have IE 4.0 or higher installed (there are other alternatives, but I really can't find many machines without it lately).

Hope this helps. Tell me if you need something else.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform