Package eu.europa.esig.dss.pades
Class DSSFileFont
java.lang.Object
eu.europa.esig.dss.pades.AbstractDSSFont
eu.europa.esig.dss.pades.DSSFileFont
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
DEFAULT_TEXT_SIZE, size
-
Constructor Summary
ConstructorsConstructorDescriptionDSSFileFont
(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 TypeMethodDescriptionboolean
Gets font's content InputStreamGets the JAVA instance of the FontgetName()
Gets name of the font documentint
hashCode()
static DSSFileFont
Initializes the defaultDSSFileFont
boolean
This method returns whether only a font subset should be included into a PDFvoid
setEmbedFontSubset
(boolean embedFontSubset) Sets whether only a subset of used glyphs should be embedded to a PDF, when aDSSFileFont
is used.Methods inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
getSize, setSize
-
Constructor Details
-
DSSFileFont
Constructor to load the font from InputStream- Parameters:
inputStream
-InputStream
containing a font
-
DSSFileFont
Constructor to load the font from DSSDocument- Parameters:
dssDocument
-DSSDocument
containing a font
-
DSSFileFont
Constructor to load the font from DSSDocument with a size- Parameters:
dssDocument
-DSSDocument
containing a fontsize
- value of the font
-
-
Method Details
-
initializeDefault
Initializes the defaultDSSFileFont
- Returns:
DSSFileFont
-
getJavaFont
-
getInputStream
Gets font's content InputStream- Returns:
InputStream
of the font's document
-
getName
-
setEmbedFontSubset
public void setEmbedFontSubset(boolean embedFontSubset) Sets whether only a subset of used glyphs should be embedded to a PDF, when aDSSFileFont
is used. When set to TRUE, only the used glyphs will be embedded to a font. When set to FALSE, all glyphs from a font will be embedded to a PDF. DEFAULT : FALSE (the whole font file is embedded to a PDF) NOTE : this parameter will not take effect forDefaultPdfBoxVisibleSignatureDrawer
- Parameters:
embedFontSubset
- whether only a subset of used glyphs should be embedded to a PDF
-
isEmbedFontSubset
public boolean isEmbedFontSubset()This method returns whether only a font subset should be included into a PDF- Returns:
- TRUE if a font subset should be included to a PDF, FALSE if the whole font file
-
equals
-
hashCode
-