Package org.zkoss.chart
Class PDFFont
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.PDFFont
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class PDFFont extends Optionable
Settings for a custom font for the exported PDF. This is used for languages containing non-ASCII characters, like Chinese, Russian, Japanese etc.As described in the jsPDF docs, the 14 standard fonts in PDF are limited to the ASCII-codepage. Therefore, in order to support other text in the exported PDF, one or more TTF font files have to be passed on to the exporting module.
See more in the docs.
- Since:
- 10.2.1.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description PDFFont()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBold()Returns the TTF font file for bold text.StringgetBolditalic()Returns the TTF font file for bold and italic text.StringgetItalic()Returns the TTF font file for italic text.StringgetNormal()Returns the TTF font file for normalfont-style.voidsetBold(String bold)Sets the TTF font file for bold text.voidsetBolditalic(String bolditalic)Sets the TTF font file for bold and italic text.voidsetItalic(String italic)Sets the TTF font file for italic text.voidsetNormal(String normal)Sets the TTF font file for normalfont-style.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getBold
public String getBold()
Returns the TTF font file for bold text.Default:
null
-
setBold
public void setBold(String bold)
Sets the TTF font file for bold text.
-
getBolditalic
public String getBolditalic()
Returns the TTF font file for bold and italic text.Default:
null
-
setBolditalic
public void setBolditalic(String bolditalic)
Sets the TTF font file for bold and italic text.
-
getItalic
public String getItalic()
Returns the TTF font file for italic text.Default:
null
-
setItalic
public void setItalic(String italic)
Sets the TTF font file for italic text.
-
getNormal
public String getNormal()
Returns the TTF font file for normalfont-style. If font variations likeboldoritalicare not defined, the {@code normal" font will be used for those too.Default: {@code null}
-
setNormal
public void setNormal(String normal)
Sets the TTF font file for normalfont-style. If font variations likeboldoritalicare not defined, the {@code normal" font will be used for those too.
-
-