public static function freetypeDpiComp($font_size) {
		$dpi = intval($GLOBALS['TYPO3_CONF_VARS']['GFX']['TTFdpi']);
		if ($dpi != 72) {
			$font_size = $font_size / $dpi * 72;
		}
		return $font_size;
	}
public static function freetypeDpiComp($font_size) {
		$dpi = intval($GLOBALS['TYPO3_CONF_VARS']['GFX']['TTFdpi']);
		if ($dpi != 72) {
			$font_size = $font_size / $dpi * 72;
		}
		return $font_size;
	}
public static function freetypeDpiComp ( $ font_size ) { $ dpi = intval ( $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'GFX' ] [ 'TTFdpi' ] ) ; if ( $ dpi != 72 ) { $ font_size = $ font_size / $ dpi * 72 ; } return $ font_size ; }
Function to compensate for FreeType2 96 dpi

@param integer $font_size Fontsize for freetype function call
@return integer Compensated fontsize based on $GLOBALS['TYPO3_CONF_VARS']['GFX']['TTFdpi']
Function to compensate for FreeType2 96 dpi