Companion

object Companion

Properties

Link copied to clipboard

The default font. This is used when the theme does not specify a font. The default theme also uses it.

Functions

Link copied to clipboard
fun basedOn(font: Font, family: String? = null, size: Float? = null, style: FontStyle? = null): Font
Link copied to clipboard
fun create(size: Float, style: FontStyle, vararg families: String): Font

Each font family in families are tried sequentially. If the first fails, it tries the second etc. The last should be a fall-back such as "Serif", "SansSerif", "MonoSpaced".

fun create(family: String, size: Float, style: FontStyle = FontStyle.PLAIN): Font
Link copied to clipboard
fun monospaced(size: Float, style: FontStyle = FontStyle.PLAIN): Font
Link copied to clipboard
fun sansSerif(size: Float, style: FontStyle = FontStyle.PLAIN): Font
Link copied to clipboard
fun serif(size: Float, style: FontStyle = FontStyle.PLAIN): Font