PDA

View Full Version : CreateFont can't change font



Quaver
09-17-2013, 10:57 AM
I don't seem to be able to change the font in a CreateFont call:


text.font = CreateFont(0, 0, 0, 0, FW_REGULAR, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE/*FF_MODERN*/ | DEFAULT_PITCH, "Times New Roman");

Renders the same as:


text.font = CreateFont(0, 0, 0, 0, FW_REGULAR, FALSE, FALSE, FALSE, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, FF_DONTCARE/*FF_MODERN*/ | DEFAULT_PITCH, "SimSun");

Quaver
10-07-2013, 02:20 PM
Bump!!!!!