On Nov 1, 2005, at 3:17 PM, Drago Goricanec wrote:
In writing my application I've come across what I think is a bug in
Apple's implementation of java.awt.font.TextLayout's getBounds()
method. I
am trying to find the bounds of rendered text (i.e., a rectangle that
describes all pixels that will be modified for a given String). I'm
using
the example from TextLayout Javadoc. However, I cannot make sense of
the
information returned. The Y coordinate does not describe either the
top
left corner, nor the origin of the baseline.
I have not had time to file bugs on that yet, but there are definitely
bugs in that area of the API. For instance, when I use a TextLayout
object to render text on multiple lines through iteration over a
LineBreakMeasurer object, some lines overflow to the right, as if
there was a problem in character sequence measurement.
So I would definitely file bugs if I were you. I will try to file mine
ASAP.
JM
. . .
Jean-Michel Decombe <email@hidden>
Chief Technology Officer
Groxis, Inc. <http://www.groxis.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden