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