W
wlyft
Unregistered / Unconfirmed
GUEST, unregistred user!
with Printer.Canvasdo
begin
GetObject(Font.Handle,SizeOf(LogFont),Addr(LogFont));
LogFont.lfHeight :=strtoint(form2.edit141.Text);// 50;
LogFont.lfWidth :=strtoint(form2.edit142.Text);//16;
logfont.lfFaceName := '宋体';
hNewFont:=CreateFontIndirect(LogFont);
hOldFont := SelectObject(Handle,hNewFont);
Textout(XPos,YPos-strtoint(form2.edit143.Text),Str);
hNewFont := SelectObject(Handle,hOldFont);
DeleteObject(hNewFont);
end;
以这样的方式打印,怎么设置字间距?
begin
GetObject(Font.Handle,SizeOf(LogFont),Addr(LogFont));
LogFont.lfHeight :=strtoint(form2.edit141.Text);// 50;
LogFont.lfWidth :=strtoint(form2.edit142.Text);//16;
logfont.lfFaceName := '宋体';
hNewFont:=CreateFontIndirect(LogFont);
hOldFont := SelectObject(Handle,hNewFont);
Textout(XPos,YPos-strtoint(form2.edit143.Text),Str);
hNewFont := SelectObject(Handle,hOldFont);
DeleteObject(hNewFont);
end;
以这样的方式打印,怎么设置字间距?