Class ITextDSSFontMetrics
java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
eu.europa.esig.dss.pdf.openpdf.visible.ITextDSSFontMetrics
- All Implemented Interfaces:
DSSFontMetrics
The IText (OpenPDF) implementation of Font metrics
-
Constructor Summary
ConstructorsConstructorDescriptionITextDSSFontMetrics(com.lowagie.text.pdf.BaseFont baseFont) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAscentPoint(String str, float size) Returns the ascent pointfloatgetDescentPoint(String str, float size) Returns the descent pointfloatComputes a height for a string of a given sizefloatComputes a width for a string of a given sizeMethods inherited from class eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
computeTextBoundaryBox, getLines
-
Constructor Details
-
ITextDSSFontMetrics
public ITextDSSFontMetrics(com.lowagie.text.pdf.BaseFont baseFont) Default constructor- Parameters:
baseFont-BaseFont
-
-
Method Details
-
getWidth
Description copied from interface:DSSFontMetricsComputes a width for a string of a given size- Parameters:
str-Stringto get width ofsize- of a string- Returns:
- string width
-
getHeight
Description copied from interface:DSSFontMetricsComputes a height for a string of a given size- Parameters:
str-Stringto get height ofsize- of a string- Returns:
- string width
-
getAscentPoint
Returns the ascent point- Parameters:
str-Stringto get value forsize- the size of the string- Returns:
- ascent point
-
getDescentPoint
Returns the descent point- Parameters:
str-Stringto get value forsize- the size of the string- Returns:
- descent point
-