Incorrect GlyphVector layout for a rotated font.

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9, 11, 14, 15
    • Component/s: client-libs
    • 2d

      If you create a font with a rotation transform (not a transform on the graphics)
      and then call Font.layoutGlyphVector(..) the result is drawn horizontally - losing the rotation of the baseline, even though the glyph images are rotated.
      A test program demonstrating this is provided and shows that it does not
      affect TextLayout - only - a directly laid out GlyphVector.
      I think this is due to the different expectations of the two APIs as to the result of native layout.
      Also this occurs starting with JDK 9 and works fine in that release if I specify -Dsun.font.layoutengine=icu, so is a regression in the harfbuzz code.

      A minor note : the test program also failed on 8u on macos .. but worked (with ICU) on 9 so there was presumably a different macos bug fixed in 9.

      Also, another note: I discovered this issue whilst testing a fix for
      https://bugs.openjdk.java.net/browse/JDK-8224109

            Assignee:
            Philip Race
            Reporter:
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: