I want to load and display a font, which is not installed in the fonts folder of Windows.
I already tried to copy my font to the fonts folder in the beginning of my app (using system(“copy…”)); , but it couldn’t load it. If i restarted the prog, it worked. It looks like, CBuilder creates apps, which enumerates existing fonts before running an application…(?)
(Unfortunately, NeHe’s tutorials only deal with pre-installed fonts) OK, to the point…
How is it possible to load a font, which isn’t installed in the Fonts folder of Win?
This hasnt anything to do with OpenGL but I’ll answer anyway.
You may look into the function:
Here is the reference:
It took me less then 1 minute in the MSDN to find that function so what is your excuse?
Anyway… I tried AddFontResource and it works. That’s simple.
There are a lot a tutorials I found on the net using AddFontResource, but they are sometimes too complicated and the essential cannot be seen so easily.