1。生成字库的问题?
条件:HFONT hFont
lFont.lfHeight = 16;
lFont.lfWidth = width;
lFont.lfEscapement = 0;
lFont.lfOrientation = 0;
lFont.lfWeight = FW_NORMAL;
lFont.lfItalic = FALSE;
lFont.lfUnderline = False;
lFont.lfStrikeOut = 0;
lFont.lfCharSet = SHIFTJIS_CHARSET;
lFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
lFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;//CLIP_EMBEDDED;
lFont.lfQuality = DEFAULT_QUALITY;
lFont.lfPitchAndFamily = FIXED_PITCH | DEFAULT_PITCH;
实验:1:无论怎么改变lfWidth的值,最后显示的字体的width的数值不可能得到14。
2:把lfPitchAndFamily 变为FIXED_PITCH | DEFAULT_PITCH,就可以得到width=14.
3:把字符集变为ANSI_CHARSET,也可以得到width=14,但显示的字体的点阵不一样。
why?