Interface IsFont
- 
- All Superinterfaces:
- IsDefaultFont
 - All Known Implementing Classes:
- AbstractFont,- AbstractScriptableFont,- Font,- Font,- Font,- Font,- FontItem
 
 public interface IsFont extends IsDefaultFont Interface to map a font element.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll 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.IsDefaultFontcreate, create, getFamily, getLineHeight, getLineHeightAsString, getSize, getStyle, getWeight
 
- 
 
- 
- 
- 
Method Detail- 
setSizevoid setSize(int size) Sets the font size.- Parameters:
- size- the font size.
 
 - 
setStylevoid 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).
 
 - 
setFamilyvoid setFamily(String family) Sets the font family, follows CSS font-family options.- Parameters:
- family- Font family, follows CSS font-family options.
 
 - 
setWeightvoid setWeight(Weight weight) Sets the font weight, follows CSS font-style-weight options.- Parameters:
- weight- font weight, follows CSS font-style-weight options.
 
 - 
setLineHeightvoid setLineHeight(double lineHeight) Sets the line height.- Parameters:
- lineHeight- the line height.
 
 - 
setLineHeightvoid setLineHeight(String lineHeight) Sets the line height.- Parameters:
- lineHeight- the line height.
 
 
- 
 
-