Package eu.europa.esig.dss.pades
Class DSSJavaFont
java.lang.Object
eu.europa.esig.dss.pades.AbstractDSSFont
eu.europa.esig.dss.pades.DSSJavaFont
- All Implemented Interfaces:
DSSFont
,Serializable
Represent the JAVA implementation of the DSSFont
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
DEFAULT_TEXT_SIZE, size
-
Constructor Summary
ConstructorDescriptionDSSJavaFont
(Font javaFont) Default constructorDSSJavaFont
(String fontName) Constructor from font's nameDSSJavaFont
(String fontName, int size) Constructor from font's name with sizeDSSJavaFont
(String fontName, int style, int size) Constructor from font's name with a style and size -
Method Summary
Methods inherited from class eu.europa.esig.dss.pades.AbstractDSSFont
getSize
-
Constructor Details
-
DSSJavaFont
Default constructor- Parameters:
javaFont
-Font
-
DSSJavaFont
Constructor from font's name- Parameters:
fontName
-String
name of the Java font to load
-
DSSJavaFont
Constructor from font's name with size- Parameters:
fontName
-String
name of the Java font to loadsize
- value for the font
-
DSSJavaFont
Constructor from font's name with a style and size- Parameters:
fontName
-String
name of the Java font to loadstyle
- value for the fontsize
- value for the font
-
-
Method Details
-
getJavaFont
Description copied from interface:DSSFont
Gets the JAVA instance of the Font- Returns:
Font
-
getName
Gets the name of the font- Returns:
String
-
setSize
public void setSize(float size) Description copied from interface:DSSFont
Sets size of the font- Specified by:
setSize
in interfaceDSSFont
- Overrides:
setSize
in classAbstractDSSFont
- Parameters:
size
- float value
-