ID3DXFont From File
The D3DXCreateFont method wants a face name as a parameter, and seems to find the font from the system font folder.
I'm wondering, is there a way to load a specified file (so I could load, say "Fonts/CustomFont.ttf") instead of requesting a font based on the face name? There doesn't seem to be a method for that according to MSDN. Anyone know if you can do this?
Thanks!
You could try calling AddFontResource or AddFontResourceEx to add the font from a file and then instantiate it via D3DX using the face name defined for the file.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement