MutableFontFaceDeclaration

A mutable font face declaration.

Functions

Link copied to clipboard
fun addSource(path: String, preload: Boolean = false)
fun addSource(href: Url, preload: Boolean = false)

Add a source for the font face.

Link copied to clipboard
fun setFontStyle(fontStyle: FontStyle)

Set the font style of the font face.

Link copied to clipboard

Set the font weight range of a variable font face.

fun setFontWeight(fontWeight: FontWeight)

Set the font weight of the font face.