private static double getGnomeFontScale() {
		// do not scale font here if JRE scales
		if( isSystemScaling() )
			return 96. / 72.;

		// see class com.sun.java.swing.plaf.gtk.PangoFonts background information

		Object value = Toolkit.getDefaultToolkit().getDesktopProperty( "gnome.Xft/DPI" );
		if( value instanceof Integer ) {
			int dpi = (Integer) value / 1024;
			if( dpi == -1 )
				dpi = 96;
			if( dpi < 50 )
				dpi = 50;
			return dpi / 72.0;
		} else {
			return GraphicsEnvironment.getLocalGraphicsEnvironment()
				.getDefaultScreenDevice().getDefaultConfiguration()
				.getNormalizingTransform().getScaleY();
		}
	}
Create a font for the given family, style and size.
If the font family does not match any font on the system,
then the last word (usually a font weight) from the family name is removed and tried again.
E.g. family 'URW Bookman Light' is not found, but 'URW Bookman' is found.
If still not found, then font of family 'Dialog' is returned.
flatlaf-core/src/main/java/com/formdev/flatlaf/LinuxFontPolicy.java