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: 6751616
Votes 1
Synopsis outline for underline in TextLayout with underline is off rasterized underline
Category java:classes_2d
Reported Against
Release Fixed 7(b43), 6u12(b01) (Bug ID:2168900)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 23-SEP-2008
Description
TextLayout outline is a bit off rasterized text. I understand a few 
pixels difference is to be expected. However if text is underlined the 
outline for underline is way off the rasterized underline.
Posted Date : 2008-09-23 19:03:19.0

RT-524 [Mouse enter event is not triggered when mouse is moved on the underline of the text] http://openjfx.java.sun.com/jira/browse/RT-524
depends on this bug.
Posted Date : 2008-09-23 19:05:19.0
Work Around
N/A
Evaluation
The bug is that the underline offset is not being added to the position.
Note that rendering may still show an edge of the bounding box to be off by a pixel from
the filled underline which may lie at a subpixel position.
RenderingHints.VALUE_STROKE_PURE can be used to render with subpixel accuracy if
visual appearance is the requirement.  But code that is hit testing against pixel boundaries may
also need to compensate in its calculations
However the outlines and images of text won't exactly match anyway because of hinting effects.
Posted Date : 2008-10-07 22:46:08.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang