RFR: 8368702: [macosx] Printing text with composite fonts loses font transform
Daniel Gredler
dgredler at openjdk.org
Mon Sep 29 11:53:13 UTC 2025
When printing text on macOS, if the text uses a composite font (a logical font composed of more than one physical font) with a custom affine transform, the transform can be lost, and the text printed without the transform applied.
This is one of a few issues affecting the problem listed manual test `java/awt/print/PrinterJob/PrintTextTest.java` on macOS, and can be observed on page 10, on the last line ("TextLayout 2"). Without the fix, the text on this line is not stretched across the x-axis, resulting in large gaps of white space between runs of different script types.
-------------
Commit messages:
- Add bug ID to test bug annotation
- Update copyright year
- Avoid loss of font transform and attributes
Changes: https://git.openjdk.org/jdk/pull/27544/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27544&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8368702
Stats: 10 lines in 2 files changed: 6 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/27544.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27544/head:pull/27544
PR: https://git.openjdk.org/jdk/pull/27544
More information about the client-libs-dev
mailing list