List of usage examples for com.itextpdf.text.pdf BaseFont getDescentPoint
public float getDescentPoint(String text, float fontSize)
String
in points. 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; }