General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only