On Tue, 25 Mar 2025 14:21:10 GMT, Daniel Gredler <[email protected]> wrote:
> FileFontStrike contains a check as to whether the current Windows version is
> Windows XP or later. The current minimum supported version is Windows 10, so
> this is no longer needed.
>
> When the code in question was added 17 years ago, a test was included
> (test/jdk/java/awt/Graphics2D/DrawString/ScaledLCDTextMetrics.java), so this
> can be used to verify that there are no regressions.
src/java.desktop/share/classes/sun/font/FileFontStrike.java line 119:
> 117: private static native void initNative();
> 118: static {
> 119: if (FontUtilities.isWindows && !FontUtilities.useJDKScaler &&
> !GraphicsEnvironment.isHeadless()) {
Please split long lines per 80 chars.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24230#discussion_r2013581053