-
Bug
-
Resolution: Fixed
-
P2
-
8
-
b120
-
windows
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8030285 | 8u5 | Philip Race | P2 | Resolved | Fixed | b01 |
GlyphVector exposes the position of each individual glyph. There are setter and getter methods.
Usually the first glyph is at position (0,0) and the Graphics2D.drawGlyphVector() method is used
to set the starting position. However JavaFX does make use of the initial glyph position and
since the new JavaFX printing feature makes use of the Java2D printing implementation, this
JDK on Windows bug breaks important text printing behaviour for JavaFX causing text to be rendered
at the wrong position, and even overlaying other text in the same string, causing it to be
unreadable, This was initially reported as https://javafx-jira.kenai.com/browse/RT-32113 but
the problem is larger than that test case.
There is a very simple and safe fix which is isolated to printing a GlyphVector on Windows.
Usually the first glyph is at position (0,0) and the Graphics2D.drawGlyphVector() method is used
to set the starting position. However JavaFX does make use of the initial glyph position and
since the new JavaFX printing feature makes use of the Java2D printing implementation, this
JDK on Windows bug breaks important text printing behaviour for JavaFX causing text to be rendered
at the wrong position, and even overlaying other text in the same string, causing it to be
unreadable, This was initially reported as https://javafx-jira.kenai.com/browse/RT-32113 but
the problem is larger than that test case.
There is a very simple and safe fix which is isolated to printing a GlyphVector on Windows.
- backported by
-
JDK-8030285 Printing a GlyphVector on Windows ignores position of first glyph
-
- Resolved
-
- links to