I'm initializing it with this
Code: Select all
D3DXCreateFont(d3dDevice, 20, 10, FW_BOLD, 0, false, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, choiceFont.c_str(), &Font)
than I try to render some text with this
Code: Select all
RECT rct = {x - 120, y, x + 120, y + 15};
Font->DrawText(NULL, Text, -1, &rct, DT_NOCLIP, Color)