JDK-8353187 : Test TextLayout/TestControls fails on macOS: width of 0x9, 0xa, 0xd isn't zero
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,11,17,21,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2025-03-28
  • Updated: 2025-05-21
  • Resolved: 2025-05-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b23Fixed
Related Reports
Relates :  
Description
The java/awt/font/TextLayout/TestControls.html (or java/awt/font/TextLayout/TestControls.java) fails on macOS.

The test instructions say, “The following lines all render the controls.  All controls should not render (even as space) and report a zero advance.” The characters 0x9, 0xa and 0xd do not satisfy this condition: the width of each is 8 as the width of space (0x20).
Comments
Changeset: 85db4631 Branch: master Author: Daniel Gredler <dgredler@openjdk.org> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2025-05-13 10:37:57 +0000 URL: https://git.openjdk.org/jdk/commit/85db4631ae5208fba74fa8b8638c32d4e42d3268
13-05-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23665 Date: 2025-02-17 14:06:53 +0000
01-05-2025

This issue will be resolved by JDK-8350203 issue fix - https://github.com/openjdk/jdk/pull/23665
01-05-2025

Confirmed behavior as described on MacOS. 0x9, 0xa, and 0xd all have a width of 8, matching 0x20. Results match the provided screenshot.
01-04-2025