Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to install a font progamatically???
Message
 
To
05/04/2000 14:01:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00355663
Message ID:
00355922
Views:
16
Hi Erik --

>>>
>Somewhere on this forum I have seen a message or file titled - How to install a font programatically, but I cannot find it now. Can anyone point me to that file. Thanks.

With Win2K you can just copy the file to the fonts folder, and windows installs it automagically.

COPY FILE "C:\ARIALNBI.TTF" TO "c:\winnt\fonts\arialnbi.ttf"
<<<

I'd have to recommend a quick call to SHGetSpecialFolderLocation, or (at the very least) GetWindowsDirectory, rather than hardcoding the path.

>>>
I believe this works the same with other versions, but I can't test from here.
<<<

I think you're right there. I've "installed" a lot of fonts with simple DOS copy commands, just within the local LAN.

Later... Karl


.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform