是的,我选择的是宋体。创建字体的函数如下:
var
xfont: tlogfont;
begin
CreateFontIndirect(xfont);
xfont.lfHeight := -100;
xfont.lfWidth := 30;
xfont.lfEscapement := 0;
xfont.lfOrientation := 0;
xfont.lfWeight := 400;
xfont.lfItalic := 0;
xfont.lfUnderline := 0;
xfont.lfStrikeOut := 0;
xfont.lfCharSet := GB2312_CHARSET;
xfont.lfOutPrecision := OUT_DEFAULT_PRECIS;
xfont.lfClipPrecision := CLIP_DEFAULT_PRECIS;
xfont.lfQuality := DEFAULT_QUALITY;
xfont.lfPitchAndFamily := DEFAULT_PITCH;
xfont.lfFaceName := '宋体';
Label26.Font.Handle := CreateFontIndirect(xfont);
调用PRINTATONCE控件时,预览正常,打印时却不正常,只打了一部分
我的函数有问题吗?