The bugs.java.com site will be undergoing maintenance on 15th Dec 2017 21:00 PST to 16th Dec 2017 1:00 AM PST.
JDK-8016833 : Underlines and strikethrough not rendering correctly
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.
In a styled document superscripted text underlines and strikethrough lines are painted lower than expected.
On 20.06.2013 18:57, Alexander Scherbatiy wrote:
It seem that there is the same problem with the background color:
Style style = comp.addStyle("underlined superscript", null);
doc.insertString(doc.getLength(), "hello", style);
because paint(Graphics g, Shape a) method in GlyphView uses the alloc.height in the same way.