Skip to main content
FontSpec
Specs for a font. The default values depend on the context.
NameTypeDescription
family?stringFont family to use.
size?numberSize of the font. Default value depends on the context this spec occurs in.
style?FontStyleFont style to use. Default value depends on the context this spec occurs in.
weight?FontWeightFont weight to use (e.g., "normal", "bold", "100", "300"). Defaults to null, which browsers treat as "normal".