Skip to main content

com.bluebillywig.bbnativeshared.model — Functions

effectiveSkinFont​

fun effectiveSkinFont(role: FontRole) : FontSpec

What [role]'s font is actually set to, the Shorts counterpart of Playout.effectiveSkinFont (#20286): the app config stores the same Id + name pair per role, only in camelCase. Reads that role's two fields and classifies them with [FontSpec.from].

The same warning applies as on the playout: an absent skinFontHeadingId / skinFontBodyId means "leave that role alone", and a present Id clears the role whenever [FontSpec.from] reads it as [FontSpec.None] - any spelling of zero, anything that is not a plain optionally-signed run of digits, and a negative Id with a blank name. A parsed AppConfig cannot tell absent from null, so an SDK acting on a partial update must check the raw payload for [FontRole.appConfigKey] first.