[Lazarus] Metafile support

Marco van de Voort marcov at stack.nl
Fri Apr 8 13:23:06 CEST 2011


On Thu, Apr 07, 2011 at 09:33:34PM +1100, Alexander Klenin wrote:
> A TAChart user requested export to WMF/EMF:
> http://forum.lazarus.freepascal.org/index.php/topic,12693.0.html
> 
> It turns out that Lazarus CCR has Metafile package,
> but it is incomplete and apparently abandoned.
> 
> My options are:
> 1) Import the source into TAChart (it is only 350 lines of code),
> and fix/complete it there.
> 2) Somehow fix/complete the package in CCR,
> and then create a TAChartMetafile package depending on Metafile.
> 3) Import the source into LCL (since Delphi contains TMetafileCanvas
> http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Graphics_TMetafileCanvas.html
> it can be argued as compatibility measure)
> 
> I personally prefer the first option.
> What do others think?

First consider if you are on the right track at all. The OP wanted EMF
because of font problems with SVG etc.  EMF will have the same issues.

If you don't full font processing through the GDI, the resulting EMF will
not look the same with GDI and without.

Example: DIA (the image editors) export.




More information about the Lazarus mailing list