public float getMaxStringWidth ( List < String > strings , FontOptions options ) { float width = 0 ; for ( String str : strings ) width = Math . max ( width , getStringWidth ( str , options ) ) ; return width ; } /** * Gets the rendering width of a character. * * @param c the c * @param options the options * @return the char width */ public float getCharWidth ( char c , FontOptions options ) { if ( c == ' ' || c == ' ' ) return 0 ; if ( c == ' ' ) return getCharWidth ( ' ' , options ) * 4 ; return getCharData ( c ) . getCharWidth ( ) / fontGeneratorOptions . fontSize * ( options != null ? options . getFontScale ( ) : 1 ) * 9 ; }
Gets max rendering width of an array of string .