Skip to main content

Named

class Named(val name: String) : FontSpec()

/** No font for this role: render in the built-in Lato. */
object None : FontSpec()

A font to look up by name on the device: a family name from the OVP's built-in lists ("Verdana", "Montserrat"). Never downloaded, never cached.

Functions​

from​

fun from(id: String?, name: String?) : FontSpec

Classifies one role's raw Id and name fields. See the class KDoc for the rule; in short: positive Id wins as a [Clip], negative Id takes the trimmed [name] as a [Named] font, everything else - including numeric zero and anything unparsable - is [None].