support specifying custom scale factor in system property flatlaf.uiScale also for Java 9 and later

This commit is contained in:
Karl Tauber
2020-03-31 12:17:05 +02:00
parent af89dd13c1
commit 9429ba7d48
2 changed files with 2 additions and 3 deletions

View File

@@ -204,9 +204,6 @@ public class UIScale
* to the given font.
*/
public static FontUIResource applyCustomScaleFactor( FontUIResource font ) {
if( UIScale.isSystemScalingEnabled() )
return font;
String uiScale = System.getProperty( "flatlaf.uiScale" );
float scaleFactor = parseScaleFactor( uiScale );
if( scaleFactor <= 0 )