Tutorial :Using a font from a ttf file in windows / direct3d


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?


Try using the AddFontResourceEx Function.

re: MSDN Font Installation and Deletion

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »