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

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

Introduction

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

Prototype

public float getDescentPoint(String text, float fontSize) 

Source Link

Document

Gets the descent of a String in points.

Usage

From source file:org.gephi.preview.plugin.renderers.EdgeLabelRenderer.java

License:Open Source License

private float getTextHeight(BaseFont baseFont, float fontSize, String text) {
    float ascend = baseFont.getAscentPoint(text, fontSize);
    float descend = baseFont.getDescentPoint(text, fontSize);
    return ascend + descend;
}