Class JavaDSSFontMetrics
java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
eu.europa.esig.dss.pdf.pdfbox.visible.defaultdrawer.JavaDSSFontMetrics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatComputes a height for a string of a given sizefloatgetMaxAscent(float size) Returns the max ascent for the given fontsizefloatComputes a width for a string of a given sizeMethods inherited from class eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
computeTextBoundaryBox, getLines
-
Constructor Details
-
JavaDSSFontMetrics
-
-
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
-
getMaxAscent
public float getMaxAscent(float size) Returns the max ascent for the given fontsize- Parameters:
size- font size- Returns:
- max ascent
-