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 IsDefaultFont
Interface to define fomt object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FontItem
create()
Creates a font options instance using default or cloning current instance.default FontItem
create(IsDefaultFont defaultValues)
Creates a font options instance using default or cloning current instance.String
getFamily()
Returns the font family, follows CSS font-family options.double
getLineHeight()
Returns the height of an individual line of text.String
getLineHeightAsString()
Returns the height of an individual line of text as string.int
getSize()
Returns the font size.FontStyle
getStyle()
Returns the font style, follows CSS font-style options (i.e.Weight
getWeight()
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
-
-