modules/graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java

Print this page

        

@@ -1897,21 +1897,20 @@
             }
         }
     }
 
     static native int getLCDContrastWin32();
-    private static native int getSystemFontSizeNative();
+    private static native float getSystemFontSizeNative();
     private static native String getSystemFontNative();
     private static float systemFontSize;
     private static String systemFontFamily = null;
     private static String monospaceFontFamily = null;
 
     public static float getSystemFontSize() {
         if (systemFontSize == -1) {
             if (isWindows) {
-                float uiScale = Screen.getMainScreen().getUIScale();
-                systemFontSize = getSystemFontSizeNative() / uiScale;
+                systemFontSize = getSystemFontSizeNative();
             } else if (isMacOSX || isIOS) {
                 systemFontSize = MacFontFinder.getSystemFontSize();
             } else if (isAndroid) {
                systemFontSize = AndroidFontFinder.getSystemFontSize();
             } else if (isEmbedded) {