[Lazarus] Metafile support

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Apr 7 13:46:35 CEST 2011


On Thu, Apr 7, 2011 at 1:27 PM, Alexander Klenin <klenin at gmail.com> wrote:
> That was my first thought too, but after looking at fpvectorial
> interface I found that
> it is not currently suitable neither for TAChart nor for WMF.
> This line in SVG writer illustrates some missing features:
>  style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"

I'm in the process of implementing fill pattern, fill color, stroke
(aka pen) color and pen width for the DXF reader as well as the
generic data structure. If you verify the data structures used you
will see that extending them for further capabilities is very easy
because the structure is will designed.

>>as opposed to using so Windows APIs
> The code I found does indeed use WinAPI, so it is Windows-specific.
> However, the upside is that it is relatively simple and possibly more efficient
> then hand-made implementation.
> Variants for other platforms may use corresponding libraries, like libwmf
> I think the difference is similar to LCL vs FPGUI -- "native look and speed"
> vs "portability and common code".

The difference is that the LCL uses libraries which are present anyway
in the user system, like Gtk and Qt.

libwmf seams like an unwanted external dependency to me. It doesn't
come preinstalled in my Linux, for example. Installing it in my
MacBook would probably be a nightmare.

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list