|
如何使用AddFontResource,添加完毕后如何使用才能设置新的字体并且用DrawText画出
[复制链接]
如题。求高手帮忙
AddFontResource(_T("\\Storage Card\\Ksphonet.TTF"));
::SendMessage( HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
LOGFONT lf=
{
28,
0,
0,
0,
FW_NORMAL,
0,
0,
0,
DEFAULT_CHARSET,
0,
0,
0,
0,
_T("Tahoma") 这里应该填什么?或是不在这里改
};
HFONT hFont = CreateFontIndirect(&lf);
HFONT hfontold = (HFONT)SelectObject(hdc,hFont);
DrawText(hdc,saveChar , -1, &textRect, DT_LEFT|DT_EDITCONTROL|DT_WORDBREAK);
|
|