register

fun register(family: String, fileOrUrl: String, weight: Int = 400, italic: Boolean = false)(source)

Registers the font file for a font family, weight and style. A later registration of the same family, weight and style replaces it.