List of usage examples for com.itextpdf.text.pdf BaseFont getFontDescriptor
public abstract float getFontDescriptor(int key, float fontSize);
key
. From source file:com.chaschev.itext.ColumnTextBuilder.java
License:Apache License
private static float calcApproximateFontHeight(Font font) { final BaseFont baseFont = font.getBaseFont(); return baseFont.getFontDescriptor(BaseFont.ASCENT, font.getSize()) - baseFont.getFontDescriptor(BaseFont.DESCENT, font.getSize()); }