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. Families are matched without regard to case.