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
Returns an array of strings, divided by a new line character -
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
Computes a width for a string of a given size- Parameters:
str
-String
to get width ofsize
- of a string- Returns:
- string width
-
getHeight
Computes a height for a string of a given size- Parameters:
str
-String
to get height ofsize
- of a string- Returns:
- string width
-