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

Print this page

        

*** 1897,1917 **** } } } static native int getLCDContrastWin32(); ! private static native int 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; } else if (isMacOSX || isIOS) { systemFontSize = MacFontFinder.getSystemFontSize(); } else if (isAndroid) { systemFontSize = AndroidFontFinder.getSystemFontSize(); } else if (isEmbedded) { --- 1897,1916 ---- } } } static native int getLCDContrastWin32(); ! 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) { ! systemFontSize = getSystemFontSizeNative(); } else if (isMacOSX || isIOS) { systemFontSize = MacFontFinder.getSystemFontSize(); } else if (isAndroid) { systemFontSize = AndroidFontFinder.getSystemFontSize(); } else if (isEmbedded) {