Jump to content


Loading uninstalled TrueType fonts in C++


1 reply to this topic

#1 Bids

    New Member

  • Members
  • Pip
  • 1 posts

Posted 01 February 2004 - 06:36 PM

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

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 01 February 2004 - 06:54 PM

what kind of project ? i suggest using textured fonts instead. there are plenty of tools to generate font textures from any ttf.
If Prolog is the answer, what is the question ?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users