PDA

View Full Version : Loading uninstalled TrueType fonts in C++


Bids
02-01-2004, 11:36 AM
Hi,

I am willing to use my own TrueType font in one of my C++ programs, i.e. a ttf font that is not already installed in Windows at the time the program is run.
Apparently there is this function "AddFontResource" that is supposed to do the job, but despite my repeated attempts the function never returns an "OK" status. I've read many contradictory examples on how to use this function properly...could someone give me a hint on this ?
I am getting nuts!

Thanks

anubis
02-01-2004, 11:54 AM
what kind of project ? i suggest using textured fonts instead. there are plenty of tools to generate font textures from any ttf.