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 float
getAscentPoint(String str, float size)
float
getDescentPoint(String str, float size)
float
getHeight(String str, float size)
Computes a height for a string of a given sizefloat
getWidth(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:AbstractFontMetrics
Computes a width for a string of a given size- Specified by:
getWidth
in classAbstractFontMetrics
- Parameters:
str
-String
to get width ofsize
- of a string- Returns:
- string width
-
getHeight
Description copied from class:AbstractFontMetrics
Computes a height for a string of a given size- Specified by:
getHeight
in classAbstractFontMetrics
- Parameters:
str
-String
to get height ofsize
- of a string- Returns:
- string width
-
getAscentPoint
-
getDescentPoint
-