rect.setLowerLeftY( header.getYMin() * 1000f/header.getUnitsPerEm() );
rect.setUpperRightX( header.getXMax() * 1000f/header.getUnitsPerEm() );
rect.setUpperRightY( header.getYMax() * 1000f/header.getUnitsPerEm() );
fd.setFontBoundingBox( rect );
HorizontalHeaderTable hHeader = ttf.getHorizontalHeader();
fd.setAscent( hHeader.getAscender() * 1000f/header.getUnitsPerEm() );
fd.setDescent( hHeader.getDescender() * 1000f/header.getUnitsPerEm() );
GlyphTable glyphTable = ttf.getGlyph();
GlyphData[] glyphs = glyphTable.getGlyphs();
PostScriptTable ps = ttf.getPostScript();