[fpc-pascal] TFPCanvasDrawer and anti-alias.
silvioprog
silvioprog at gmail.com
Tue Jan 29 00:32:01 CET 2013
2013/1/28 Michael Van Canneyt <michael at freepascal.org>
> On Mon, 28 Jan 2013, silvioprog wrote:
>
>> Hello,
>> TFPCanvasDrawer provides anti-alias support?
>>
>
> Not for lines.
Sniff. :'(
I'm trying to generate charts in my CGI apps:
http://silvioprog.com.br/cgi-bin/cgi1
And PDF with PowerPDF (I'll send a patch soon to remove some LCL
dependences):
http://silvioprog.com.br/cgi-bin/cgi2 (Clique "aqui" = Click "here")
> For texts, it should be able to add it.
>
Yes:
procedure TFPCanvasDrawer.EnsureFont;
begin
{$IFDEF USE_FTFONT}
if FFont <> nil then exit;
FFont := TFreeTypeFont.Create;
FFont.Resolution := 72;
FFont.AntiAliased := False; <<<< I'll set it for True. It would be
interesting if there was a property to handle it.:)
FCanvas.Font := FFont;
{$ENDIF}
end;
Thanks for the fast reply man! :)
ps. I'm very, very happy with the Free Pascal. Now, I'm creating fine my
PDFs and charts. I will make one layer to facilitate the use of some
classes of PowerPDF and TAChart.
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130128/d80af8a2/attachment.html>
More information about the fpc-pascal
mailing list