public int getKerning ( char first , char second ) { Map toMap = ( Map ) ansiKerning . get ( new Integer ( first ) ) ; if ( toMap == null ) { return 0 ; } Integer kerning = ( Integer ) toMap . get ( new Integer ( second ) ) ; if ( kerning == null ) { return 0 ; } return Math . round ( convertUnitToEm ( size , kerning . intValue ( ) ) ) ; }
Get the kerning value between two characters