To: discussions about usage and development of dia <dia-list gnome org>
Subject: Re: [PATCH] vertical alignment for text objects
Date: Tue, 15 Mar 2005 19:31:12 -0800
On Mon, 2005-03-14 at 18:11 +0100, Grégoire Dooms wrote:
> Hi here is a quick fix for the central connection point of text:
> it is a vertical alignment feature for the text object.
>
> There are four options: align top, bottom, center or old (~bottom of
> first line).
> The top, bottom and center are computed wrt the bounding box with seems to
> be a little too wide at the bottom.
Thank you! That is a useful feature. The "old" alignment should
possibly be called "first line" or something more descriptive. Or we
could just (being pre-1.0) force all the old ones to point to Bottom if
one line of text, Center if two lines, Top otherwise. Or just go to
Center always. That gets us rid of an ugly hysterical raisin.
Again, this should be PROP_FLAG_OPTIONAL.
It would probably be more useful if there was a connection point
there... there's only a handle. However, there are issues about having
connectable handles and connection points on top of each other (if you
put two such objects together, you can't separate them).
> This should probably be implemented in the lib/text.c code instead of
> the textobj. But as this is already done for the text object ...
It could indeed be one of the standard text properties. It should, in
fact. And that wouldn't be hard. Would just require adding more
standard text macros and then going around to the objects that use it
and insert them. In fact, the text properties macros could be
refactored out into a single macro that just takes enough arguments to
build the offsets. But not yet...
-Lars
--
Lars Clausen <lars raeder dk>