Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6751621
Votes 0
Synopsis TextLayout.getBounds() doesn't account for strike through
Category java:classes_2d
Reported Against
Release Fixed 7(b43), 6u12(b01) (Bug ID:2167372)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 6751619
Submit Date 23-SEP-2008
Description
TextLayout.getBounds() will return a bounds that does not account for
any strike through. This is apparent if the text begins or ends with a space.
This is an oversight and it requires the same treatment as is being given to
an underline.

But underline isn't returning bounds that completely enclose the rendering
either, although its a very small error.

The reason for this is that the rendering is using a BasicStroke and defaulting
to CAP_SQUARE. Although in the cases where it needs to explicitly specify
parameters it chooses the correct CAP_BUTT.

So part of this is to fix the uses of BasicStroke by strike through and
underline to always use CAP_BUTT.

Test case is attached.
Posted Date : 2008-09-23 19:14:14.0
Work Around
N/A
Evaluation
As per description
Posted Date : 2008-09-23 19:17:55.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang