RFR: 8285308: Win: Japanese logical fonts are drawn with wrong size [v2]

Phil Race prr at openjdk.java.net
Tue May 3 00:04:33 UTC 2022


On Mon, 25 Apr 2022 08:15:18 GMT, Toshio Nakamura <tnakamura at openjdk.org> wrote:

>> Japanese logical fonts are drawn with wrong size since Java 18.
>> It's triggered by JEP 400, UTF-8 by Default. `sun.awt.FontConfiguration` (and `sun.awt.windows.WFontConfiguration`) seems to expect the native encoding instead of the default encoding. This patch changes to use native encoding.
>> 
>> Tested: jdk_desktop on Windows, Linux, and macOS
>
> Toshio Nakamura has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Moved the fix to WFontConfiguration

Ah, because even in the JDK context the behaviour of the native Text Control in this respect is determined in part by the system locale, not just the JDK's idea of locale ..

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

PR: https://git.openjdk.java.net/jdk/pull/8329



More information about the client-libs-dev mailing list