RFR: 8368702: [macosx] Printing text with composite fonts loses font transform
Daniel Gredler
dgredler at openjdk.org
Thu Oct 16 21:16:09 UTC 2025
On Mon, 29 Sep 2025 11:46:47 GMT, Daniel Gredler <dgredler at openjdk.org> wrote:
> 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.
This one is waiting for reviews, if anyone has a few spare cycles. I think once this PR is incorporated, macOS will only have issues with one page (page 8) of the `java/awt/print/PrinterJob/PrintTextTest.java` test case.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27544#issuecomment-3412872862
More information about the client-libs-dev
mailing list