[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" =3D 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 :=3D TFreeTypeFont.Create;
  FFont.Resolution :=3D 72;
  FFont.AntiAliased :=3D False; <<<< I'll set it for True. It would be
interesting if there was a property to handle it.:)
  FCanvas.Font :=3D 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=E9cio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freepascal.org/lists/fpc-pascal/attachments/20130128/d80a=
f8a2/attachment.htm


More information about the fpc-pascal mailing list