ID3DXFont From File

Started by
1 comment, last by Uphoreum 15 years, 5 months ago
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!
Advertisement
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.

My free book on Direct3D: "The Direct3D Graphics Pipeline"
My blog on programming, vintage computing, music, politics, etc.: Legalize Adulthood!

Oh yea, that should work fine. Thanks!

This topic is closed to new replies.

Advertisement