public class SimpleFontFace extends Object implements FontFace, JRCloneable
Constructor and Description |
---|
SimpleFontFace(Font font)
Deprecated.
To be removed.
|
SimpleFontFace(JasperReportsContext jasperReportsContext) |
SimpleFontFace(JasperReportsContext jasperReportsContext,
String ttf)
Deprecated.
Replaced by #
SimpleFontFace(JasperReportsContext) and setTtf(String) . |
SimpleFontFace(String file)
Deprecated.
Replaced by #
SimpleFontFace(JasperReportsContext) and setTtf(String) . |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getEot() |
String |
getFile()
Deprecated.
Replaced by
getTtf() . |
Font |
getFont()
Returns a non-null instance of java.awt.Font representing the font face.
|
static SimpleFontFace |
getInstance(JasperReportsContext jasperReportsContext,
String fontName)
Deprecated.
Replaced by
SimpleFontFace(JasperReportsContext) and setTtf(String) . |
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 |
setEot(String eot) |
void |
setPdf(String pdf) |
void |
setSvg(String svg) |
void |
setTtf(String ttf) |
void |
setWoff(String woff) |
public SimpleFontFace(JasperReportsContext jasperReportsContext, String ttf)
SimpleFontFace(JasperReportsContext)
and setTtf(String)
.public SimpleFontFace(String file)
SimpleFontFace(JasperReportsContext)
and setTtf(String)
.public SimpleFontFace(Font font)
public SimpleFontFace(JasperReportsContext jasperReportsContext)
public Object clone()
clone
in interface JRCloneable
clone
in class Object
public static SimpleFontFace getInstance(JasperReportsContext jasperReportsContext, String fontName)
SimpleFontFace(JasperReportsContext)
and setTtf(String)
.public String getName()
FontFace
public String getTtf()
FontFace
public void setTtf(String ttf)
public Font getFont()
FontFace
public void setPdf(String pdf)
public void setEot(String eot)
public void setSvg(String svg)
public void setWoff(String woff)
Copyright © 2016. All rights reserved.