RFR: 8352890: Remove unnecessary Windows version check in FileFontStrike
Sergey Bylokhov
serb at openjdk.org
Wed Mar 26 08:08:19 UTC 2025
On Tue, 25 Mar 2025 14:21:10 GMT, Daniel Gredler <dgredler at openjdk.org> 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
More information about the client-libs-dev
mailing list