打印字体问题,几个问题。。。。。。
int nVerRes = GetDeviceCaps(pd.hDC, VERTRES);
nVerRes等于6774,是代表页面打印的高度范围吗?
我创建字体
HFONT hFont=CreateFont(。。。。。);
hFont=(HFONT)SelectObject(pd.hDC,hFont);
其中CreateFont的参数怎么写,第一个参数为正,为负?
得到字体大小
TEXTMETRIC tm;
GetTextMetrics(pd.hDC, &tm);
int nCharHeight = tm.tmHeight;
int nCharWidth = tm.tmAveCharWidth;
用6774/nCharHeight 得到的是打印行数吗?