-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.6
-
Verified
I would expect TextLayout.getCarentInfo(TextHit(0,true)[0] to return the first xAdvance instead it is returning the Advance.
TextLayout layout = new TextLayout("Test", getFont());
TextHitInfo thi = new TextHitInfo(0, true);
float[] caretInfo = layout.getCaretInfo(thi);
System.out.println("position: " + caretInfo[0]);
TextLayout layout = new TextLayout("Test", getFont());
TextHitInfo thi = new TextHitInfo(0, true);
float[] caretInfo = layout.getCaretInfo(thi);
System.out.println("position: " + caretInfo[0]);
- relates to
-
JDK-4130434 The Measurement of Text
-
- Closed
-