Interface IsFont
-
- All Superinterfaces:
IsDefaultFont
- All Known Implementing Classes:
AbstractFont,AbstractScriptableFont,Font,Font,Font,Font,Font,FontItem
public interface IsFont extends IsDefaultFont
Interface to map a font element.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetFamily(String family)Sets the font family, follows CSS font-family options.voidsetLineHeight(double lineHeight)Sets the line height.voidsetLineHeight(String lineHeight)Sets the line height.voidsetSize(int size)Sets the font size.voidsetStyle(FontStyle style)Sets the font style, follows CSS font-style options (i.e.voidsetWeight(Weight weight)Sets the font weight, follows CSS font-style-weight options.-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultFont
create, create, getFamily, getLineHeight, getLineHeightAsString, getSize, getStyle, getWeight
-
-
-
-
Method Detail
-
setSize
void setSize(int size)
Sets the font size.- Parameters:
size- the font size.
-
setStyle
void setStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).- Parameters:
style- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
-
setFamily
void setFamily(String family)
Sets the font family, follows CSS font-family options.- Parameters:
family- Font family, follows CSS font-family options.
-
setWeight
void setWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options.- Parameters:
weight- font weight, follows CSS font-style-weight options.
-
setLineHeight
void setLineHeight(double lineHeight)
Sets the line height.- Parameters:
lineHeight- the line height.
-
setLineHeight
void setLineHeight(String lineHeight)
Sets the line height.- Parameters:
lineHeight- the line height.
-
-