Hi,
Can anyone tell me how to register Your own .fon so your program can use it after instalation?
Thanks
Printable View
Hi,
Can anyone tell me how to register Your own .fon so your program can use it after instalation?
Thanks
do you mean font files?
the usual file extension is .TTF
fonts are automatically retained in the P&DW package.
Enter the font name and filename into this registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts
(take a look to see how it's set out first, though)
No, I mean fonts with .fon extentions
You use that key for .fon files as well.
But how about for when another person installs the program on his PC? He should do the same, right?
Can it be done in code?
Yes, it can. Simply use your program to add a registry key for the font. I think you need to use the exact font name or it will get confused...not sure though. For some registry code go here: http://www.parksie.uklinux.net/registry.zip
there is also a registry tutorial, i believe, on this site