//todo retval.setAllCap
//todo retval.setSmallCap
//todo retval.setForceBold
HeaderTable header = ttf.getHeader();
PDRectangle rect = new PDRectangle();
float scaling = 1000f/header.getUnitsPerEm();
rect.setLowerLeftX( header.getXMin() * scaling );
rect.setLowerLeftY( header.getYMin() * scaling );
rect.setUpperRightX( header.getXMax() * scaling );
rect.setUpperRightY( header.getYMax() * scaling );
fd.setFontBoundingBox( rect );
HorizontalHeaderTable hHeader = ttf.getHorizontalHeader();
fd.setAscent( hHeader.getAscender() * scaling );
fd.setDescent( hHeader.getDescender() * scaling );