--- old/modules/graphics/src/main/native-font/fontpath.c 2016-03-30 23:39:48.000000000 -0700 +++ new/modules/graphics/src/main/native-font/fontpath.c 2016-03-30 23:39:48.000000000 -0700 @@ -735,15 +735,19 @@ &fontSmoothingContrast, 0) ? fontSmoothingContrast : fontSmoothingContrastDefault; } -JNIEXPORT jint JNICALL +JNIEXPORT jfloat JNICALL Java_com_sun_javafx_font_PrismFontFactory_getSystemFontSizeNative(JNIEnv *env, jclass cl) { NONCLIENTMETRICSW ncmetrics; if (getSysParams(&ncmetrics)) { - return -ncmetrics.lfMessageFont.lfHeight; + HWND hWnd = GetDesktopWindow(); + HDC hDC = GetDC(hWnd); + int dpiY = GetDeviceCaps(hDC, LOGPIXELSY); + ReleaseDC(hWnd, hDC); + return (-ncmetrics.lfMessageFont.lfHeight) * 96.0f / dpiY; } else { - return 12; + return 12.0f; } }