private static int scaleFactor2index( float scaleFactor ) {
		for( int i = 0; i < SCALE_FACTORS.length; i++ ) {
			if( scaleFactor <= SCALE_FACTORS[i] )
				return i;
		}
		return SCALE_FACTORS.length - 1;
	}
When painting text on HiDPI screens and the JRE scales, then the text is
painted too far down on some operating systems.
The higher the system scale factor is, the more.
<p>
This method computes a correction value for the Y position.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java