fixed printing small fonts, and showprefix (bugs #1336,#1414)

git-svn-id: trunk@8126 -
This commit is contained in:
jesus 2005-11-10 15:32:28 +00:00
parent 2786a70e3f
commit 26272265eb
3 changed files with 4 additions and 2 deletions

View File

@ -497,7 +497,7 @@ type
//property XBias: Integer read FXBias write FXBias;
//property YBias: Integer read FYBias write FYBias;
property Handle: HFONT read GetHandle write SetHandle;
property PixelsPerInch: Integer read FPixelsPerInch;
property PixelsPerInch: Integer read FPixelsPerInch write FPixelsPerInch;
property CanUTF8: boolean read FCanUTF8;
published
property CharSet: TFontCharSet read GetCharSet write SetCharSet default DEFAULT_CHARSET;

View File

@ -1238,7 +1238,7 @@ begin
WordBreak := True;
SingleLine := False;
Clipping := True;
ShowPrefix := True;
ShowPrefix := False;
Opaque := False;
end;
end;

View File

@ -274,6 +274,8 @@ begin
TPrinterCanvas(Canvas).BeginDoc;
//Call the specifique Begindoc
DoBeginDoc;
// Set font resolution
Canvas.Font.PixelsPerInch := YDPI;
end;
//End the current document