question: private int fixFontSize ( float pointSize ) { if ( screenRes != 72 ) { pointSize = ( int ) Math . round ( pointSize * screenRes / 72.0 ) ; } return ( int ) pointSize ; }
target:  Returns a font point size adjusted for the current screen resolution. Java2D assumes 72 dpi. On systems with larger dpi (Windows, GTK, etc.), font rendering will appear to small if we simply return a Java "Font" object's getSize() value. We need to adjust it for the screen resolution.