Clip
class Clip(val id: String) : 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.
*/
data class Named(val name: String) : FontSpec()
/** No font for this role: render in the built-in Lato. */
object None : FontSpec()
An uploaded font mediaclip, by id. Resolved into a file by FontResolver.
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].