Crazy_Challenger

导航

 

CFont * f;
f = new CFont;
f->CreateFont(10, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_BOLD, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T("Arial")); // lpszFac

cHeight是字体的高度。
cWidth是字体的宽度。
cEscapement是字体的倾斜角。0-3600,逆时针为正
cOrientation是字体的倾斜角。
cWeight是字体的粗细。
bItalic是字体是否斜体。

bUnderline是字体是否有下划线。
bStrikeOut是字体是否有删除线。

iCharSet是字体使用的字符集。
iOutPrecision是指定怎样选择合适的字体。

iClipPrecision是用来确定裁剪的精度。
iQuality是怎么样跟选择的字体相符合。
iPitchAndFamily是间距标志和属性标志。
pszFaceName是字体的名称。

posted on 2019-07-07 23:22  Crazy_Challenger  阅读(375)  评论(0)    收藏  举报