Package eu.europa.esig.dss.pades
Class DSSFileFont
java.lang.Object
eu.europa.esig.dss.pades.AbstractDSSFont
eu.europa.esig.dss.pades.DSSFileFont
- All Implemented Interfaces:
DSSFont,Serializable
public class DSSFileFont extends AbstractDSSFont
The Font created from a file
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
DEFAULT_TEXT_SIZE, size -
Constructor Summary
Constructors Constructor Description DSSFileFont(DSSDocument dssDocument)Constructor to load the font from DSSDocumentDSSFileFont(DSSDocument dssDocument, float size)Constructor to load the font from DSSDocument with a sizeDSSFileFont(InputStream inputStream)Constructor to load the font from InputStream -
Method Summary
Modifier and Type Method Description InputStreamgetInputStream()Gets font's content InputStreamFontgetJavaFont()Gets the JAVA instance of the FontStringgetName()Gets name of the font documentstatic DSSFileFontinitializeDefault()Initializes the defaultDSSFileFontMethods inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
getSize, setSize
-
Constructor Details
-
DSSFileFont
Constructor to load the font from InputStream- Parameters:
inputStream-InputStreamcontaining a font
-
DSSFileFont
Constructor to load the font from DSSDocument- Parameters:
dssDocument-DSSDocumentcontaining a font
-
DSSFileFont
Constructor to load the font from DSSDocument with a size- Parameters:
dssDocument-DSSDocumentcontaining a fontsize- value of the font
-
-
Method Details
-
initializeDefault
Initializes the defaultDSSFileFont- Returns:
DSSFileFont
-
getJavaFont
Description copied from interface:DSSFontGets the JAVA instance of the Font- Returns:
Font
-
getInputStream
Gets font's content InputStream- Returns:
InputStreamof the font's document
-
getName
Gets name of the font document- Returns:
Stringfont document name
-