views:

322

answers:

1

I'm using direct3d 9 and using D3DXCreateFont to create a font object that I can use to write text to the screen. However I want to use a font I have in TTF file instead of an installed font. Is there any way to create a font object from a TTF file without first installing the font into windows which I don't want to do?

+3  A: 

Try using the AddFontResourceEx Function.

re: MSDN Font Installation and Deletion

Jim H.
Ah that was easy once you know what to look for, thank you for the reply.
John Burton