|
-
December 15th, 2006, 05:30 AM
#1
Register system font
Hello, all.
I need to register system font using C++, but I do no know how to register it without restarting my computer. That is what I do:
1. Copy font file (fontfilename.otf) to C:\WINDOWS\Fonts\
2. Add key to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts, fontname REG_SZ fontfilename.otf
It works but after restarting my computer.
I know that it's possible using WinAPI, but I do not know the way. Any ideas?
Best Regards
Alexander Olekhnovich
-
December 16th, 2006, 05:26 AM
#2
Re: Register system font
Call AddFontResource or AddFontResourceEx and maybe before that CreateScalableFontResource.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|