private static boolean isSystemScaling() {
		if( GraphicsEnvironment.isHeadless() )
			return true;

		GraphicsConfiguration gc = GraphicsEnvironment.getLocalGraphicsEnvironment()
			.getDefaultScreenDevice().getDefaultConfiguration();
		return UIScale.getSystemScaleFactor( gc ) > 1;
	}
Returns true if the JRE scales, which is the case if:
  - environment variable GDK_SCALE is set and running on Java 9 or later
  - running on JetBrains Runtime 11 or later and scaling is enabled in system Settings
flatlaf-core/src/main/java/com/formdev/flatlaf/LinuxFontPolicy.java