[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text extent implemented (partially)
From: |
Ben Abbott |
Subject: |
Re: Text extent implemented (partially) |
Date: |
Tue, 09 Mar 2010 07:29:12 -0500 |
On Mar 7, 2010, at 4:05 PM, Michael Goffioul wrote:
> FYI,
>
> I've pushed the following changeset:
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/9f2bf537a651
>
> This implements text extent property, at least the width and
> height parts. The left and bottom are always set to the lower
> left corner of the axes box. It also takes into account the
> rotation of the text, but only multiples of 90 (these are the
> only rotations supported by the renderer anyway).
>
> It also implements correct updaters for the position and
> extent properties (for text objects), so you can basically
> get the text size in pixels.
>
> I think this should be ok to start looking at the legend stuff.
>
> Note that I won't have the time in the coming days to continue
> the implementation, so if anyone want to take over, be my guest.
>
> Michael.
I played with this today. Looks good to me (works for fltk and gnuplot).
However, I have some questions.
When you wrote ...
> The left and bottom are always set to the lower
> left corner of the axes box
I assume you meant; "The left and bottom are always set to the lower left
corner of the text's bounding box."?
Regarding text rotation, I had thought OpenGL was able to arbitrarily rotate
outline fonts, but only able to handle increments of 90 degrees for bitmaps. Am
I confused?
Ben
Re: Text extent implemented (partially), Jaroslav Hajek, 2010/03/09
Re: Text extent implemented (partially), Søren Hauberg, 2010/03/09