mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 13:50:06 +02:00
LCL, postscript, use selectfont instead of findfont/scalefont, fix typo in postscript example
git-svn-id: trunk@17664 -
This commit is contained in:
parent
953046ea87
commit
7ceed3d638
@ -120,7 +120,7 @@ var
|
|||||||
PsCanvas.Font.Style:=[fsItalic];
|
PsCanvas.Font.Style:=[fsItalic];
|
||||||
FontSample('Italic Пример текста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
FontSample('Italic Пример текста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
||||||
PsCanvas.Font.Style:=[];
|
PsCanvas.Font.Style:=[];
|
||||||
FontSample('Normal Пример AQUIтESекста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
FontSample('Normal Пример текста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
||||||
PsCanvas.Font.Style:=[fsUnderline,fsBold,fsItalic];
|
PsCanvas.Font.Style:=[fsUnderline,fsBold,fsItalic];
|
||||||
FontSample('all Пример текста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
FontSample('all Пример текста Random:ęðšćàÀâ¿€ÂáÁçÇñÑüÜ');
|
||||||
PsCanvas.Font.Style:=[];
|
PsCanvas.Font.Style:=[];
|
||||||
@ -161,7 +161,7 @@ begin
|
|||||||
Brush.Color:=clGreen;
|
Brush.Color:=clGreen;
|
||||||
Ellipse(10,260,60,310);
|
Ellipse(10,260,60,310);
|
||||||
|
|
||||||
// ??
|
// pie
|
||||||
Brush.Color:=clTeal;
|
Brush.Color:=clTeal;
|
||||||
Brush.Style:=bsSolid;
|
Brush.Style:=bsSolid;
|
||||||
RadialPie(10,360,90,440,0,60*16);
|
RadialPie(10,360,90,440,0,60*16);
|
||||||
|
@ -337,10 +337,10 @@ begin
|
|||||||
w := word(UStr[i]);
|
w := word(UStr[i]);
|
||||||
b := BlockFor(w);
|
b := BlockFor(w);
|
||||||
|
|
||||||
FontIndex := IndexOfFont(Font, FontSize, 0, b);
|
FontIndex := IndexOfFont(Font, FontSize, FontStyle, b);
|
||||||
if (FontIndex<0) or (FontIndex<>FLastFontIndex) then begin
|
if (FontIndex<0) or (FontIndex<>FLastFontIndex) then begin
|
||||||
EmitSubStr;
|
EmitSubStr;
|
||||||
FontStr := SelectFont(Font, FontSize, 0, b);
|
FontStr := SelectFont(Font, FontSize, FontStyle, b);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
c := byte(w-FBlocks[b].Ini);
|
c := byte(w-FBlocks[b].Ini);
|
||||||
@ -460,7 +460,7 @@ begin
|
|||||||
i := FUsedFonts.IndexOf(EncScaledFont);
|
i := FUsedFonts.IndexOf(EncScaledFont);
|
||||||
if i<0 then begin
|
if i<0 then begin
|
||||||
i := FUsedFonts.Add(EncScaledFont);
|
i := FUsedFonts.Add(EncScaledFont);
|
||||||
OutLst.Add(format('/%s { /%s findfont %d scalefont setfont } bind def',
|
OutLst.Add(format('/%s { /%s %d selectfont } bind def',
|
||||||
[EncScaledFont,EncFont,AFontSize]));
|
[EncScaledFont,EncFont,AFontSize]));
|
||||||
OutLst.Add('');
|
OutLst.Add('');
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user