FontFamily

Class

Android
class FontFamily constructor(val family: String)

Describes the family of the font. Defaults are provided, but it is also possible to supply a custom family. If this is found on the system it will be used, otherwise it will fallback to a system default.

Companion Object

Properties

Android
val Serif = FontFamily("serif")

The formal text style for scripts.

Android
val SansSerif = FontFamily("sans-serif")

Font family with low contrast and plain stroke endings.

Android
val Monospace = FontFamily("monospace")

Font family where glyphs have the same fixed width.

Android
val Cursive = FontFamily("cursive")

Cursive, hand-written like font family.