Class ITextFontMetrics
java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractFontMetrics
eu.europa.esig.dss.pdf.openpdf.visible.ITextFontMetrics
public class ITextFontMetrics extends AbstractFontMetrics
-
Constructor Summary
Constructors Constructor Description ITextFontMetrics(com.lowagie.text.pdf.BaseFont baseFont) -
Method Summary
Modifier and Type Method Description floatgetAscentPoint(String str, float size)floatgetDescentPoint(String str, float size)floatgetHeight(String str, float size)Computes a height for a string of a given sizefloatgetWidth(String str, float size)Computes a width for a string of a given sizeMethods inherited from class eu.europa.esig.dss.pdf.visible.AbstractFontMetrics
computeDimension, getLines
-
Constructor Details
-
ITextFontMetrics
public ITextFontMetrics(com.lowagie.text.pdf.BaseFont baseFont)
-
-
Method Details
-
getWidth
Description copied from class:AbstractFontMetricsComputes a width for a string of a given size- Specified by:
getWidthin classAbstractFontMetrics- Parameters:
str-Stringto get width ofsize- of a string- Returns:
- string width
-
getHeight
Description copied from class:AbstractFontMetricsComputes a height for a string of a given size- Specified by:
getHeightin classAbstractFontMetrics- Parameters:
str-Stringto get height ofsize- of a string- Returns:
- string width
-
getAscentPoint
-
getDescentPoint
-