Font
data class Font( val size: Number = DEFAULT_FONT_SIZE, val color: Color = Color.BLACK, val family: String = "Arial", val fontWeight: Font.FontWeight = FontWeight.NORMAL, val fontStyle: Font.FontStyle = FontStyle.NORMAL)
Content copied to clipboard
This class is used to represent a font. For more customization of fonts, the CSS feature can be used.
See also
Constructors
Link copied to clipboard
fun Font( size: Number = DEFAULT_FONT_SIZE, color: Color = Color.BLACK, family: String = "Arial", fontWeight: Font.FontWeight = FontWeight.NORMAL, fontStyle: Font.FontStyle = FontStyle.NORMAL)
Content copied to clipboard
Creates a Font.
Types
Link copied to clipboard
Enum class for representing all available font styles for the Font class.
Link copied to clipboard
Enum class for representing all available font weights for the Font class.
Properties
Link copied to clipboard
Link copied to clipboard
Font style for this Font. Default: FontStyle.NORMAL.
Link copied to clipboard
Font weight for this Font. Default: FontWeight.NORMAL.