Jump to content
  • Advertisement
Sign in to follow this  
MrJul

ID3DXFont and underline/strikeout/orientation

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

Is there any way to use ID3DXFont with underline/strikeout or oriented font ? D3DXCreateFont only provide arguments for bold and italic... Should I be using a standard CreateFont and GDI-Render it ? Seems to be quite a loss in performance, although I didn't try it yet because I believe there has to be a DirectX solution to this problem. Thanks for your help.

Share this post


Link to post
Share on other sites
Advertisement
Thanks for your reply.

But this was true in older versions of the SDK, when D3DXCreateFont took a HFONT as a parameter. Since then, the ID3DXFont has received an huge boost in performance, as I read, and now D3DXCreateFont takes about the same parameters as CreateFont, without underline, strikeout nor orientation.

I do not want to use older versions of the SDK because I think updates are made to be use. If GDI rendering if the only solution of course I will use it... but it is a little disappoiting though.

Share this post


Link to post
Share on other sites
Yes, however the struct as the same parameters as D3DXCreateFont :(


typedef struct D3DXFONT_DESC {
INT Height;
UINT Width;
UINT Weight;
UINT MipLevels;
BOOL Italic;
BYTE CharSet;
BYTE OutputPrecision;
BYTE Quality;
BYTE PitchAndFamily;
TCHAR FaceName[LF_FACESIZE];
} D3DXFONT_DESC, *LPD3DXFONT_DESC;

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!