RFR: 8368702: [macosx] Printing text with composite fonts loses font transform
Daniel Gredler
dgredler at openjdk.org
Thu Nov 13 06:48:03 UTC 2025
On Thu, 13 Nov 2025 04:11:36 GMT, Prasanta Sadhukhan <psadhukhan 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.
>
> BTW, are you also working on issue in Page 8 of the above test? I guess that's the only issue remaining after this as I see..
@prsadhuk Yep, I've been whittling down the issues in this test for the past year or so, and plan to wrap up with page 8 as soon as my other open PRs are finalized. Thanks for the review!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27544#issuecomment-3525805172
More information about the client-libs-dev
mailing list