Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8029204

Printing a GlyphVector on Windows ignores position of first glyph

    XMLWordPrintable

Details

    • 2d
    • b120
    • windows
    • Verified

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: