• Advertisement
Sign in to follow this  

Direct3D10 howto load font from file or resource

This topic is 2186 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello Everyone,

[color=#000000][font=arial, sans-serif][size=3]I'm trying to find a way to initialiize a SlimDX.Direct3D10.Font instance by loading a font.ttf from file.[/size][/font][/color][color=#000000][font=arial, sans-serif][size=3]
It seems that Direct3D9.Font had an overloaded constructor that accepted System.Drawing.Font which could be loaded via PrivateFontCollection.AddFromFile.[/size][/font][/color]
[color=#000000][font=arial, sans-serif][size=3]
How does one do this in Direct3D10?[/size][/font][/color][color=#000000][font=arial, sans-serif][size=3]
Can someone point me in the right direction?[/size][/font][/color]
[color=#000000][font=arial, sans-serif][size=3]
The context of the question is that I don't want to install the font. Instead it should be part of my app or within a resource file.[/size][/font][/color]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement