Example usage for com.itextpdf.text.pdf BaseFont DESCENT

List of usage examples for com.itextpdf.text.pdf BaseFont DESCENT

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf BaseFont DESCENT.

Prototype

int DESCENT

To view the source code for com.itextpdf.text.pdf BaseFont DESCENT.

Click Source Link

Document

The maximum depth below the baseline reached by glyphs in this font.

Usage

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());
}