public interface IsFont extends IsDefaultFont
Modifier and Type | Method and Description |
---|---|
void |
setFamily(String family)
Sets the font family, follows CSS font-family options.
|
void |
setLineHeight(double lineHeight)
Sets the line height.
|
void |
setLineHeight(String lineHeight)
Sets the line height.
|
void |
setSize(int size)
Sets the font size.
|
void |
setStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e.
|
void |
setWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options.
|
create, create, getFamily, getLineHeight, getLineHeightAsString, getSize, getStyle, getWeight
void setSize(int size)
size
- the font size.void setStyle(FontStyle style)
style
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).void setFamily(String family)
family
- Font family, follows CSS font-family options.void setWeight(Weight weight)
weight
- font weight, follows CSS font-style-weight options.void setLineHeight(double lineHeight)
lineHeight
- the line height.void setLineHeight(String lineHeight)
lineHeight
- the line height.