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
public class DSSJavaFont extends AbstractDSSFont
Represent the JAVA implementation of the DSSFont
- 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 DSSJavaFont(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
Modifier and Type Method Description Font
getJavaFont()
Gets the JAVA instance of the FontString
getName()
Gets the name of the fontvoid
setSize(float size)
Sets size of the fontMethods 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
-