API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceFontVariantKey
@codexo/exojs / rendering / stable
Everything that decides which glyphs a text run is drawn from. Named rather than positional because the four values are all strings and three of them default to `'normal'`: `{ family: 'Roboto', fontWeight: '700' }` says what a run of four bare strings could not.
4
props
0
methods
0
events
Import
import { FontVariantKey } from '@codexo/exojs'Everything that decides which glyphs a text run is drawn from.
Named rather than positional because the four values are all strings and three of them default to `'normal'`: `{ family: 'Roboto', fontWeight: '700' }` says what a run of four bare strings could not.
Properties4
family: stringDefaults to 'normal'.
Defaults to 'normal'.
fontWeight?: stringDefaults to 'normal'.
Source