spaceWidthText = font.getSpaceWidth() * glyphSpaceToTextSpaceFactor;
/** * Creates the font bounds. * * @param font * the font * @return the rectangle 2 D */ private Rectangle2D createFontBounds(PDFont font) { BoundingBox box; try { box = font.getBoundingBox(); } catch (IOException e) { throw new IllegalArgumentException("Failed to get bounding box for font", e); } float width = font.getSpaceWidth(); float height = box.getHeight(); return new Rectangle2D.Float(0, 0, width, height); }
spaceWidthText = font.getSpaceWidth() * glyphSpaceToTextSpaceFactor; } catch (Throwable e) {
spaceWidthText = font.getSpaceWidth() * glyphSpaceToTextSpaceFactor;
spaceWidthText = font.getSpaceWidth() * glyphSpaceToTextSpaceFactor;
spaceWidthText = font.getSpaceWidth() * glyphSpaceToTextSpaceFactor;