D3DX字体看起来很奇怪

时间:2014-02-16 13:30:59

标签: c++ fonts directx d3dx

我目前正在开发一个小型引擎,因此我使用自己几个月前写的GUI系统。最近我用一些字体选项更新了它。

D3DXFONT_DESCA hFontCreationInfo = {
    hFontData.iFontSize,
    0,
    0,
    0,
    false,
    DEFAULT_CHARSET,
    OUT_CHARACTER_PRECIS,
    ANTIALIASED_QUALITY,
    TMPF_TRUETYPE,
    ""
};

strcpy(hFontCreationInfo.FaceName, hFontData.sBaseFontName);

HRESULT hrFont = D3DXCreateFontIndirect(gui->GetDevice(), &hFontCreationInfo, &m_hFont);

以下是一些截图:

12, 24 looks okay - but 16 is just buggy

this is size 12, also bugged

所以问题是,我做错了什么?

怪异

0 个答案:

没有答案