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

Toshio Nakamura tnakamura at openjdk.java.net
Fri Apr 22 00:33:44 UTC 2022


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

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

Commit messages:
 - 8285308: Win: Japanese logical fonts are drawn with wrong size

Changes: https://git.openjdk.java.net/jdk/pull/8329/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8329&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8285308
  Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8329.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8329/head:pull/8329

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



More information about the client-libs-dev mailing list