15,979
社区成员
发帖
与我相关
我的任务
分享
font.CreateFontIndirect(&lf);
oldfont = pDC->SelectObject(&font);
LOGFONT lf;
lf.lfHeight = 240;
lf.lfWidth = 120;
lf.lfEscapement = m_ang;
lf.lfOrientation = m_ang;
lf.lfWeight = 520;
lf.lfItalic = 0;
lf.lfUnderline = 0;
lf.lfStrikeOut = 0;
lf.lfCharSet = GB2312_CHARSET;
lf.lfOutPrecision = 0;
lf.lfClipPrecision = CLIP_STROKE_PRECIS;
lf.lfQuality = 0;
lf.lfPitchAndFamily = 0;
strcpy(lf.lfFaceName, "字体名");
font.CreateFontIndirect(&lf);
oldfont = pDC->SelectObject(&font);