RFR: 8358697: java/awt/font/TextLayout/MyanmarTextTest.java gives false positive result when preconditions not met [v4]

Alexey Ivanov aivanov at openjdk.org
Wed Jun 18 20:29:30 UTC 2025


On Wed, 18 Jun 2025 20:18:29 GMT, Phil Race <prr at openjdk.org> wrote:

>> test/jdk/java/awt/font/TextLayout/MyanmarTextTest.java line 59:
>> 
>>> 57:     private static final String[] FONTS_WINDOWS = {"Myanmar Text", "Noto Sans Myanmar"};
>>> 58:     private static final String[] FONTS_LINUX = {"Padauk", "Noto Sans Myanmar", "Myanmar Text"};
>>> 59:     private static final String[] FONTS_MACOS = {"Myanmar MN", "Noto Sans Myanmar", "Myanmar Text"};
>> 
>> I'm unsure if Noto Sans fonts are installed by default on Windows or macOS.
>> 
>> Similarly, "Myanmar Text" is unlikely to be installed on Linux.
>> 
>> Since there's a list of possible fonts, the list could well be *platform-independent* — just look for a first match.
>
> My comment was ONLY about Linux. I definitely didn't expect to see the fonts for other platforms updated.
> They can be a list of one font.

That's how I read your suggestion too.

Yet I like the idea of a platform-independent list of fonts.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25879#discussion_r2155436504


More information about the client-libs-dev mailing list