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 Object
clone()
protected void
finalize()
String
getEot()
Font
getFont()
Returns a non-null instance of java.awt.Font representing the font face.String
getName()
Returns the non-null name of the font face.String
getPdf()
String
getSvg()
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).String
getWoff()
void
loadFont()
void
setEot(String eot)
void
setPdf(String pdf)
void
setSvg(String svg)
void
setTtf(String ttf)
void
setTtf(String ttf, boolean load)
void
setWoff(String woff)
-
-
-
Constructor Detail
-
SimpleFontFace
public SimpleFontFace(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
getName
public String getName()
Description copied from interface:FontFace
Returns the non-null name of the font face.
-
getTtf
public 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).
-
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:FontFace
Returns 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)
-
-