Class SimpleFontFace

  • All Implemented Interfaces:
    java.lang.Cloneable, FontFace, JRCloneable

    public class SimpleFontFace
    extends java.lang.Object
    implements FontFace, JRCloneable
    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      protected void finalize()  
      java.lang.String getEot()  
      java.awt.Font getFont()
      Returns a non-null instance of java.awt.Font representing the font face.
      java.lang.String getName()
      Returns the non-null name of the font face.
      java.lang.String getPdf()  
      java.lang.String getSvg()  
      java.lang.String getTtf()
      Returns the TTF file, if the font face has specified one (the font face does not specify a TTF file in case it maps a JVM available font such as a Java logical font or a system font).
      java.lang.String getWoff()  
      void loadFont()  
      void setEot​(java.lang.String eot)  
      void setPdf​(java.lang.String pdf)  
      void setSvg​(java.lang.String svg)  
      void setTtf​(java.lang.String ttf)  
      void setTtf​(java.lang.String ttf, boolean load)  
      void setWoff​(java.lang.String woff)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface JRCloneable
        Overrides:
        clone in class java.lang.Object
      • getName

        public java.lang.String getName()
        Description copied from interface: FontFace
        Returns the non-null name of the font face.
        Specified by:
        getName in interface FontFace
      • getTtf

        public java.lang.String getTtf()
        Description copied from interface: FontFace
        Returns the TTF file, if the font face has specified one (the font face does not specify a TTF file in case it maps a JVM available font such as a Java logical font or a system font).
        Specified by:
        getTtf in interface FontFace
      • setTtf

        public void setTtf​(java.lang.String ttf)
      • setTtf

        public void setTtf​(java.lang.String ttf,
                           boolean load)
      • getFont

        public java.awt.Font getFont()
        Description copied from interface: FontFace
        Returns a non-null instance of java.awt.Font representing the font face.
        Specified by:
        getFont in interface FontFace
      • getPdf

        public java.lang.String getPdf()
        Specified by:
        getPdf in interface FontFace
      • setPdf

        public void setPdf​(java.lang.String pdf)
      • getEot

        public java.lang.String getEot()
        Specified by:
        getEot in interface FontFace
      • setEot

        public void setEot​(java.lang.String eot)
      • getSvg

        public java.lang.String getSvg()
        Specified by:
        getSvg in interface FontFace
      • setSvg

        public void setSvg​(java.lang.String svg)
      • getWoff

        public java.lang.String getWoff()
        Specified by:
        getWoff in interface FontFace
      • setWoff

        public void setWoff​(java.lang.String woff)
      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object