FontFace

class FontFace(val family: String, val sources: List<String>, val weight: IntRange = 400..400, val italic: Boolean = false)(source)

A font face that text can use, like a @font-face rule of CSS: the font of family with weight and italic is loaded from the first of sources that can be loaded, a file, a URL or a data URL. A source local(name) refers to a family registered in a FontRegistry.

Constructors

Link copied to clipboard
constructor(family: String, sources: List<String>, weight: IntRange = 400..400, italic: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard