# ID3DXFont and underline/strikeout/orientation

## Recommended Posts

MrJul    152
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 on other sites
Pipo DeClown    804
IIRC you can use the standard CreateFont to get a FONT, and then you pass that FONT to D3DXCreateFont().

##### Share on other sites
MrJul    152

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 on other sites
Pipo DeClown    804
Well then, is there still a D3DXCreateFontIndirect()?

##### Share on other sites
MrJul    152
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;