Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Urgent: How to get Fonts Directory - Thanks
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00390425
Message ID:
00390466
Vues:
9
>>>>>Hi all, I need to knows where are fonts in the client machine and how to register new fonts in the distribution or programmatically.
>>>>>
>>>>>Thanks in advance!!!!!!
>>>>
>>>>While Doug's correct that in most cases the directory is WINDOWS\FONTS, it may not be necessarily true in every case. The Windows Script Host can retrieve this information this way:
oShell = CREATEOBJECT("WScript.Shell")
>>>>lcfontdir = oShell.SpecialFolders.Item("Fonts")
>>>
>>>Or you can just use:
>>>
>>>lcFontDir = GETENV("windir")+"\fonts"
>>>
>>>if you don't want to wait for the WSH to get rolling or don't have it installed.
>>
>>Fred,
>>
>>I wouldn't trust that in every case. Special folders, such as the font folder can vary from machine to machine. For example, the My Documents folder here at work is in a completely different location from the one at home. I'd err on the side of caution and go with the WSH (which I'm sure doesn't surprise< g >).
>
>The font folder can be a different name? I've never seen that but that doesn't mean much. "My Documents" is not a sub-folder of windows, so I'd expect that one to be "whereever".

The fonts directory is referred to in the platform SDK as a virtual folder, not a file system folder. Therefore, it can be in a location other than directly beneath windows.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform