Re: [dia] Windows created diagrams are no longer readable
From: Lars Clausen <lars raeder dk>
To: discussions about usage and development of dia <dia-list gnome org>
Subject: Re: [dia] Windows created diagrams are no longer readable
Date: Fri, 14 May 2004 14:36:47 +0200
On Fri, 2004-05-14 at 14:30, Hubert Figuiere wrote:
> On Fri, 2004-05-14 at 14:14 +0200, Lars Clausen wrote:
>
> > It is, however, a problematic issue. Problem is that Win32 and Pango
> > don't agree on how to render fonts, so they have slightly different
> > widths, which in turn determines the size of the boxes. Haven't found a
> > good solution yet.
>
> Why not coding the size of the box when saving the file ? Text size
> helps determine what the size of the box should be, *initially* (ie when
> creating the object). Then IMHO, the size should be saved persistently
> and reused. That would probably solve this issue. If you have anything
> against that, please explain.
Only problem is that once you edit the text, the size changes, even if
you don't change the text. But that may be a better option. It will be
realizable once the current change in text edit method is complete.
However, it also means that either the text will spill over, or the
width of the text must be preserved in some other way -- which is
doable.
-Lars