- Code:
LOGFONT lf;
strcpy(lf.lfFaceName, "GothicG");
f = CreateFontIndirect(&lf;);
...
- Code:
SelectObject(hdc, f);
with
- Code:
GetTextFace(hdc, 32, buf);
I see that current font is GothicG
but... Text drawed on screen by SYSTEM font...
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.
LOGFONT lf;
strcpy(lf.lfFaceName, "GothicG");
f = CreateFontIndirect(&lf;);
SelectObject(hdc, f);
GetTextFace(hdc, 32, buf);