Package eu.europa.esig.dss.pdf.visible
Interface DSSFontMetrics
- All Known Implementing Classes:
AbstractDSSFontMetrics
,ITextDSSFontMetrics
,JavaDSSFontMetrics
,PdfBoxDSSFontMetrics
public interface DSSFontMetrics
Performs operations on a Font object corresponding the used implementation
-
Method Summary
Modifier and TypeMethodDescriptioncomputeTextBoundaryBox
(String text, float fontSize) Computes a text boundary boxfloat
Computes a height for a string of a given sizeString[]
Returns an array of strings, divided by a new line characterfloat
Computes a width for a string of a given size
-
Method Details
-
getLines
-
computeTextBoundaryBox
Computes a text boundary box- Parameters:
text
-String
the original text to get Dimension forfontSize
- the size of a font- Returns:
AnnotationBox
of the text
-
getWidth
-
getHeight
-