Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Urgent: How to get Fonts Directory - Thanks
Message
From
10/07/2000 16:17:25
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00390425
Message ID:
00390469
Views:
10
>>>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.

Then use the registry or Win32 API... I recommend using an installer that handles the process properly and checks permissions, etc - NT and especially Win2K are likely going to puke on you dumping stuff into system directories.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform