public PdfContentByte defineGlyph ( char c , float wx , float llx , float lly , float urx , float ury ) { if ( c == 0 || c > 255 ) throw new IllegalArgumentException ( "The char " + ( int ) c + " doesn't belong in this Type3 font" ) ; usedSlot [ c ] = true ; Integer ck = Integer . valueOf ( c ) ; Type3Glyph glyph = ( Type3Glyph ) char2glyph . get ( ck ) ; if ( glyph != null ) return glyph ; widths3 . put ( c , ( int ) wx ) ; if ( ! colorized ) { if ( Float . isNaN ( this . llx ) ) { this . llx = llx ; this . lly = lly ; this . urx = urx ; this . ury = ury ; } else { this . llx = Math . min ( this . llx , llx ) ; this . lly = Math . min ( this . lly , lly ) ; this . urx = Math . max ( this . urx , urx ) ; this . ury = Math . max ( this . ury , ury ) ; } } glyph = new Type3Glyph ( writer , pageResources , wx , llx , lly , urx , ury , colorized ) ; char2glyph . put ( ck , glyph ) ; return glyph ; }
Defines a glyph . If the character was already defined it will return the same content