Class PdfBoxDSSFontMetrics
java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
eu.europa.esig.dss.pdf.pdfbox.visible.nativedrawer.PdfBoxDSSFontMetrics
- All Implemented Interfaces:
DSSFontMetrics
Contains font metrics for a PDFBox font
-
Constructor Summary
ConstructorDescriptionPdfBoxDSSFontMetrics
(org.apache.pdfbox.pdmodel.font.PDFont pdFont) Default constructor -
Method Summary
Methods inherited from class eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
computeTextBoundaryBox, getLines
-
Constructor Details
-
PdfBoxDSSFontMetrics
public PdfBoxDSSFontMetrics(org.apache.pdfbox.pdmodel.font.PDFont pdFont) Default constructor- Parameters:
pdFont
-PDFont
-
-
Method Details
-
getWidth
Description copied from interface:DSSFontMetrics
Computes a width for a string of a given size- Parameters:
str
-String
to get width ofsize
- of a string- Returns:
- string width
-
getHeight
Description copied from interface:DSSFontMetrics
Computes a height for a string of a given size- Parameters:
str
-String
to get height ofsize
- of a string- Returns:
- string width
-