Method Details |
addAttributesToRender
public void addAttributesToRender |
(THtmlWriter $writer ) |
Adds attributes related to CSS styles to renderer.
Input |
THtmlWriter | $writer | the writer used for the rendering purpose |
Output |
Exception |
|
copyFrom
public void copyFrom |
(TFont $font ) |
Copies the fields in a new font to this font.
If a font field is set in the new font, the corresponding field in this font will be overwritten.
Input |
TFont | $font | the new font |
Output |
Exception |
|
getBold
public boolean getBold |
() |
Output |
boolean
| whether the font is in bold face. Defaults to false. |
Exception |
|
getIsEmpty
public boolean getIsEmpty |
() |
Output |
boolean
| whether the font is empty |
Exception |
|
getItalic
public boolean getItalic |
() |
Output |
boolean
| whether the font is in italic face. Defaults to false. |
Exception |
|
getName
Output |
string
| the font name (family) |
Exception |
|
getOverline
public boolean getOverline |
() |
Output |
boolean
| whether the font is overlined. Defaults to false. |
Exception |
|
getSize
Output |
string
| the font size |
Exception |
|
getStrikeout
public boolean getStrikeout |
() |
Output |
boolean
| whether the font is strikeout. Defaults to false. |
Exception |
|
getUnderline
public boolean getUnderline |
() |
Output |
boolean
| whether the font is underlined. Defaults to false. |
Exception |
|
mergeWith
public void mergeWith |
(TFont $font ) |
Merges the font with a new one.
If a font field is not set in the font, it will be overwritten with the new one.
Input |
TFont | $font | the new font |
Output |
Exception |
|
reset
Clears up the font.
|
setBold
public void setBold |
(boolean $value ) |
Input |
boolean | $value | whether the font is in bold face |
Output |
Exception |
|
setItalic
public void setItalic |
(boolean $value ) |
Input |
boolean | $value | whether the font is italic |
Output |
Exception |
|
setName
public void setName |
(string $value ) |
Input |
string | $value | the font name (family) |
Output |
Exception |
|
setOverline
public void setOverline |
(boolean $value ) |
Input |
boolean | $value | whether the font is overlined |
Output |
Exception |
|
setSize
public void setSize |
(string $value ) |
Input |
string | $value | the font size |
Output |
Exception |
|
setStrikeout
public void setStrikeout |
(boolean $value ) |
Input |
boolean | $value | whether the font is strikeout |
Output |
Exception |
|
setUnderline
public void setUnderline |
(boolean $value ) |
Input |
boolean | $value | whether the font is underlined |
Output |
Exception |
|
toString
public string toString |
() |
Output |
string
| the font in a css style string representation. |
Exception |
|
Constant Details |
IS_BOLD
Bits indicating the font states.
|
IS_ITALIC
|
IS_OVERLINE
|
IS_SET_BOLD
Bits indicating whether particular font states are changed.
|
IS_SET_ITALIC
|
IS_SET_NAME
|
IS_SET_OVERLINE
|
IS_SET_SIZE
|
IS_SET_STRIKEOUT
|
IS_SET_UNDERLINE
|
IS_STRIKEOUT
|
IS_UNDERLINE
|