[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:
> 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
> 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