On Thu, 21 Apr 2022 09:14:14 GMT, Toshio Nakamura <tnakam...@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

Hmm. I am surprised that the glyphs are actually bigger. Did you come to 
understand the exact mechanism (steps)
by which this triggers the wrong size ? Without that explanation it isn't 
apparent to me we've understood the problem
even if this fixes it.

And whilst you tested linux & mac it is a shared code change so it is another 
reason to understand .. 

And are you sure you can't write a test ? Even something that uses heuristics 
around the metrics ?

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

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

Reply via email to