Interface IsDefaultFont
-
- All Known Subinterfaces:
IsFont,IsImmutableFont
- All Known Implementing Classes:
AbstractFont,AbstractImmutableFont,AbstractReadOnlyFont,AbstractScriptableFont,DefaultChartFont,DefaultRoutedFont,Font,Font,Font,Font,Font,FontItem
public interface IsDefaultFontInterface to define fomt object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FontItemcreate()Creates a font options instance using default or cloning current instance.default FontItemcreate(IsDefaultFont defaultValues)Creates a font options instance using default or cloning current instance.StringgetFamily()Returns the font family, follows CSS font-family options.doublegetLineHeight()Returns the height of an individual line of text.StringgetLineHeightAsString()Returns the height of an individual line of text as string.intgetSize()Returns the font size.FontStylegetStyle()Returns the font style, follows CSS font-style options (i.e.WeightgetWeight()Returns the font weight, follows CSS font-style-weight options.
-
-
-
Method Detail
-
getSize
int getSize()
Returns the font size.- Returns:
- the font size.
-
getStyle
FontStyle getStyle()
Returns the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).- Returns:
- the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
-
getFamily
String getFamily()
Returns the font family, follows CSS font-family options.- Returns:
- Font family, follows CSS font-family options.
-
getWeight
Weight getWeight()
Returns the font weight, follows CSS font-style-weight options.- Returns:
- the font weight, follows CSS font-style-weight options.
-
getLineHeight
double getLineHeight()
Returns the height of an individual line of text.- Returns:
- the height of an individual line of text.
-
getLineHeightAsString
String getLineHeightAsString()
Returns the height of an individual line of text as string.- Returns:
- the height of an individual line of text as string.
-
create
FontItem create()
Creates a font options instance using default or cloning current instance.- Returns:
- a font options instance using default or cloning current instance
-
create
default FontItem create(IsDefaultFont defaultValues)
Creates a font options instance using default or cloning current instance.- Parameters:
defaultValues- default provider- Returns:
- a font options instance using default or cloning current instance
-
-