Class SimpleFontFace
- java.lang.Object
-
- net.sf.jasperreports.engine.fonts.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)
-
-
Constructor Summary
Constructors Constructor Description SimpleFontFace(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()protected voidfinalize()java.lang.StringgetEot()java.awt.FontgetFont()Returns a non-null instance of java.awt.Font representing the font face.java.lang.StringgetName()Returns the non-null name of the font face.java.lang.StringgetPdf()java.lang.StringgetSvg()java.lang.StringgetTtf()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.StringgetWoff()voidloadFont()voidsetEot(java.lang.String eot)voidsetPdf(java.lang.String pdf)voidsetSvg(java.lang.String svg)voidsetTtf(java.lang.String ttf)voidsetTtf(java.lang.String ttf, boolean load)voidsetWoff(java.lang.String woff)
-
-
-
Constructor Detail
-
SimpleFontFace
public SimpleFontFace(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:FontFaceReturns the non-null name of the font face.
-
getTtf
public java.lang.String getTtf()
Description copied from interface:FontFaceReturns 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).
-
setTtf
public void setTtf(java.lang.String ttf)
-
setTtf
public void setTtf(java.lang.String ttf, boolean load)
-
loadFont
public void loadFont() throws InvalidFontException- Throws:
InvalidFontException
-
getFont
public java.awt.Font getFont()
Description copied from interface:FontFaceReturns a non-null instance of java.awt.Font representing the font face.
-
setPdf
public void setPdf(java.lang.String pdf)
-
setEot
public void setEot(java.lang.String eot)
-
setSvg
public void setSvg(java.lang.String svg)
-
setWoff
public void setWoff(java.lang.String woff)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
-