[fpc-pascal] Implementing AggPas with PtcGraph

James Richters james at productionautomation.net
Mon Jun 5 23:00:07 CEST 2017


>As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. 
>It has more features than GDI font support and the quality is better too.

Is it the fonts causing the dependency then?  I have freetype.dll included in the directory with my programs, do I need to include other files / dlls if I want them to run without installing anything?

the programs I am getting the dependency  issue with are based on and including Graeme's original sample program Agg2DColsole.dpr ,  they use:
Ptcgraph,
Ptccrt,
Sysutils,
Fpimage,
Fpwritepng,
Agg_2d,
Agg_Basics


James


-----Original Message-----
From: fpc-pascal [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Graeme Geldenhuys
Sent: Monday, June 05, 2017 2:25 PM
To: fpc-pascal at lists.freepascal.org
Subject: Re: [fpc-pascal] Implementing AggPas with PtcGraph

On 2017-06-05 03:12, Stefan V. Pantazi wrote:
> In my experience, the one dependency that AggPas has potential to fail 
> may be related to the freetype library. If you plan to run your app on 
> windows only, then you can turn freetype off and AggPas will happily 
> use windows font libraries. Search for the AGG2D_USE_FREETYPE define 
> and comment it out.

Correct, though even font support is optional in AggPas. So if you don't render text via AggPas, it has zero dependency - everything is done in pure Object Pascal code.

As for font support under Windows. Yes you can use GDI for font rendering, but I highly recommend using freetype.dll even under Windows. 
It has more features than GDI font support and the quality is better too.

Regards,
   Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp _______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal




More information about the fpc-pascal mailing list