Re: [Lazarus] Metafile support

2011-04-14 Thread Felipe Monteiro de Carvalho
On Thu, Apr 14, 2011 at 12:14 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Rendering text in WMF files requires to remember the last specified font, that applies to all subsequent output. For other metafile formats it may be desireable to check given font parameters, and to reuse an

Re: [Lazarus] Metafile support

2011-04-14 Thread Felipe Monteiro de Carvalho
On Thu, Apr 14, 2011 at 10:48 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Surely fpvectorial could be changed to use the Metafile data model internally, but this also has drawbacks for other formats. Actually I am quite divided about which is the best model to use

Re: [Lazarus] Metafile support

2011-04-14 Thread Felipe Monteiro de Carvalho
On Thu, Apr 14, 2011 at 2:53 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: I'd separate the construction of metafiles from their use (drawing). Once a file has been created - be metafile, BMP, PNG, HTML, PDF etc. - its main purpose is distribution and presentation, not editing. In the

Re: [Lazarus] Metafile support

2011-04-14 Thread Felipe Monteiro de Carvalho
Forwarding to the mailling list: On Thu, Apr 14, 2011 at 6:07 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Felipe Monteiro de Carvalho schrieb: I am totally lost about how this all applies to fpvectorial. I was talking about metafiles in general, not about specific metafile formats

Re: [Lazarus] Metafile support

2011-04-13 Thread Felipe Monteiro de Carvalho
Alexander Klenin kle...@gmail.com wrote: Meanwhile, font support is also needed. TvText = class public X, Y, Z: Double; // Z is ignored in 2D formats Value: utf8string; FontColor: TvColor; FontSize: integer; FontName: utf8string; end; What else do you need in the font

Re: [Lazarus] Metafile support

2011-04-13 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: Alexander Klenin kle...@gmail.com wrote: Meanwhile, font support is also needed. TvText = class public X, Y, Z: Double; // Z is ignored in 2D formats Value: utf8string; - FontColor: TvColor; FontSize:

Re: [Lazarus] Metafile support

2011-04-13 Thread Felipe Monteiro de Carvalho
On Wed, Apr 13, 2011 at 3:52 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Is this a mix of both a font declaration and usage? IMO metafiles contain different instructions for these. Well, it can always be separated if this is useful. I didn't do that right away because then I would need

Re: [Lazarus] Metafile support

2011-04-13 Thread Felipe Monteiro de Carvalho
On Wed, Apr 13, 2011 at 6:29 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: My remarks were about importing and interpreting WMF files. If you don't intend to support that format, you are free to handle everything as you like. ? Maybe we are not understanding each other. Basically you

Re: [Lazarus] Metafile support

2011-04-12 Thread Felipe Monteiro de Carvalho
Hello, I added Pen and Brush information to all generic data structures in fpvectorial in the lazarus-ccr, please take a look. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Metafile support

2011-04-08 Thread Marco van de Voort
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:

[Lazarus] Metafile support

2011-04-07 Thread Alexander Klenin
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

Re: [Lazarus] Metafile support

2011-04-07 Thread Felipe Monteiro de Carvalho
I think that the best would adding WMF and EMF writer modules to fpctrunk/packages/fpvectorial A TMetafile class in Lazarus can also be added which uses fpvectorial as a backend, but for your purposes it looks to me that you could simply use fpvectorial directly. The code that you found could be

Re: [Lazarus] Metafile support

2011-04-07 Thread Felipe Monteiro de Carvalho
On Thu, Apr 7, 2011 at 1:27 PM, Alexander Klenin kle...@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:  

Re: [Lazarus] Metafile support

2011-04-07 Thread Felipe Monteiro de Carvalho
On Thu, Apr 7, 2011 at 1:46 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: 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

Re: [Lazarus] Metafile support

2011-04-07 Thread Alexander Klenin
On Thu, Apr 7, 2011 at 23:55, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Could you repost your e-mails to the mailling list? It seams that they came only to me, while they might be useful for the general audience. Oops, gmail defaults have caught me again.