protected static String getBaseName ( String name ) { if ( name . endsWith ( ",Bold" ) ) return name . substring ( 0 , name . length ( ) - 5 ) ; else if ( name . endsWith ( ",Italic" ) ) return name . substring ( 0 , name . length ( ) - 7 ) ; else if ( name . endsWith ( ",BoldItalic" ) ) return name . substring ( 0 , name . length ( ) - 11 ) ; else return name ; }
Gets the name without the modifiers Bold Italic or BoldItalic .