[Lazarus] Metafile support

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Apr 14 10:48:39 CEST 2011

On Thu, Apr 14, 2011 at 12:14 AM, Hans-Peter Diettrich
<DrDiettrich1 at 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 previously
> specified font.

I still see no problem. We can simply start with a default font and
then pass the entire file calculating the resulting font for each
object/draw operation and store that font in it's data.

Consider the following Metafile:


In my representation it is:

Arc with FontWidth=X and FontColor=default
Circle with FontWidth=X and FontColor=Y

The way that the data is represented is different, but the screen
output will be the same. But now I follow up what you mean: Yes, my
data model is different from the Metafile data model, but it is

Surely fpvectorial could be changed to use the Metafile data model
internally, but this also has drawbacks for other formats.

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list