addSource

fun addSource(path: String, preload: Boolean = false)

Add a source for the font face.

Parameters

path

Path to the font file.

preload

Indicates whether this source will be declared for preloading in the HTML using <link rel="preload">.


fun addSource(href: Url, preload: Boolean = false)

Add a source for the font face.

Parameters

preload

Indicates whether this source will be declared for preloading in the HTML using <link rel="preload">.