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:
  • Constructor Details

    • DSSJavaFont

      public DSSJavaFont(Font javaFont)
      Default constructor
      Parameters:
      javaFont - Font
    • DSSJavaFont

      public DSSJavaFont(String fontName)
      Constructor from font's name
      Parameters:
      fontName - String name of the Java font to load
    • DSSJavaFont

      public DSSJavaFont(String fontName, int size)
      Constructor from font's name with size
      Parameters:
      fontName - String name of the Java font to load
      size - value for the font
    • DSSJavaFont

      public DSSJavaFont(String fontName, int style, int size)
      Constructor from font's name with a style and size
      Parameters:
      fontName - String name of the Java font to load
      style - value for the font
      size - value for the font
  • Method Details

    • getJavaFont

      public Font getJavaFont()
      Description copied from interface: DSSFont
      Gets the JAVA instance of the Font
      Returns:
      Font
    • getName

      public String 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 interface DSSFont
      Overrides:
      setSize in class AbstractDSSFont
      Parameters:
      size - float value