Sign in to follow this  
MrJul

ID3DXFont and underline/strikeout/orientation

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this