RFR: 7156751: [macosx] Problem with printing [v2]

Daniel Gredler dgredler at openjdk.org
Thu Sep 25 23:14:18 UTC 2025


> This PR fixes one more issue preventing `test/jdk/java/awt/print/PrinterJob/PrintTextTest.java` from being removed from the problem list on macOS. The issue is the placement of line 8 ("GlyphVector with position adjustments") during printing. There were two issues: (a) the necessary transform was being applied to each glyph position, but not to the initial start position, and (b) the y-advances were being unnecessarily inverted. This last one is a head-scratcher, because it seems very intentional, but seems to generate incorrect results (every second character was drawing below the line instead of above it).

Daniel Gredler has updated the pull request incrementally with one additional commit since the last revision:

  Add bug tag to PrintTextTest

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27486/files
  - new: https://git.openjdk.org/jdk/pull/27486/files/9f3f14f1..5dfbbe7f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27486&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27486&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27486.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27486/head:pull/27486

PR: https://git.openjdk.org/jdk/pull/27486


More information about the client-libs-dev mailing list