• Post Reply Bookmark Topic Watch Topic
  • New Topic

TextLayout getBounds().getX()

 
Alice Corman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a simple LineBreakMeasurer example to wrap text, like the first example here.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/font/LineBreakMeasurer.html

I noticed some lines, with certain fonts, return a negative getX() value. Is that supposed to happen or is it be a misbehaving font? From what I have read so far, I didn't think that value should be negative. So I am wondering if that is normal behavior.

 
Alice Corman
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have any thoughts on this?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!