Jump to content
  • Advertisement
Sign in to follow this  
djr

SlimDX - D3D10 Font

This topic is 3986 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

Hi This is a question for the SlimDX devs regarding the font support in D3D10 that has just been added to SVN. When I looked for font support and it wasn't there I created it myself from the SlimDX D3D9 implementation because they're practically the same in the unmanaged world but the official D3D10 version thats been added didn't do the same and I'm just curious as to why? Most notable is the change in the constructor so where in D3D9 you have: Font( Device^ device, int height, int width, FontWeight weight, int mipLevels, bool italic, CharacterSet characterSet, Precision outputPrecision, FontQuality quality, PitchAndFamily pitchAndFamily, String^ faceName ); with enumerations for CharacterSet, FontQuality etc in D3D10 we've just got ints: Font( Device^ device, int height, int width, int weight, int mipLevels, bool isItalic, int characterSet, int outputPrecision, int quality, int pitchAndFamily, String^ faceName ); The D3D9 version is IMHO far preferable, is it just a case that font support was quickly hacked in and this is going to be amended or is there some other reason? Cheers Daz

Share this post


Link to post
Share on other sites
Advertisement
Oops, that was an oversight on my part. I can check in a fix this afternoon.

In the mean time, the enums that you'd use for the D3D9 version can be used in the appropriate places in the D3D10 version. What I will probably do to fix the issue is push those enums down into the Direct3D namespace rather than duplicate them for D3D9 and D3D10.

Share this post


Link to post
Share on other sites
Excellent, thanks for that! It seemed a tad weird that it was at odds with the way the rest of it has been implemented.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!