RFR: 8350203: [macos] Newlines and tabs are not ignored when drawing text to a Graphics2D object [v3]

Alexey Ivanov aivanov at openjdk.org
Mon May 12 19:36:52 UTC 2025


On Mon, 12 May 2025 18:58:25 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Created a new JBS to track the issue on windows and linux - [JDK-8356803](https://bugs.openjdk.org/browse/JDK-8356803) - Test TextLayout/TestControls fails on windows & linux: line and paragraph separator show a non-zero advance
>
>> There seems to be similar issue on Windows and Linux where the hexcode - 0x2028 (line separator) and 0x2029 (paragraph separator) are shown with a non-zero advance - `/java/awt/font/TextLayout/TestControls.java`
> 
> Are these characters new? I can't remember there were any characters with non-zero width on Linux and Windows. I ran this test (or its previous version) on each HarfBuzz update.
> 
> No, they were these characters are part of the existing test.
> 
> I cannot reproduce this problem with 21.0.6. Nor is it reproducible with 21.0.7, the latest GA version of Java 21.
> 
> Yet I the same picture as you attached on Windows on a recent build of mainline.
> 
> If that's the case, it seems to be regression rather than an existing issue.

I also submitted [JDK-8356812](https://bugs.openjdk.org/browse/JDK-8356812): *Create an automated version of TextLayout/TestControls*.

Verifying that the widths of all control characters is zero can be automated; the manual version can exist along-side to ensure all the characters are rendered as expected.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23665#discussion_r2085323180


More information about the client-libs-dev mailing list