Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @swim/font

@swim/font

Font descriptor model and parser.

Index

Type aliases

AnyFont

AnyFont: Font | FontInit | string

AnyFontSize

AnyFontSize: AnyLength | FontSize

AnyLineHeight

AnyLineHeight: AnyLength | LineHeight

FontStretch

FontStretch: "normal" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded"

FontStyle

FontStyle: "normal" | "italic" | "oblique"

FontVariant

FontVariant: "normal" | "small-caps"

FontWeight

FontWeight: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "bold" | "bolder" | "lighter"

GenericFamily

GenericFamily: "serif" | "sans-serif" | "cursive" | "fantasy" | "monospace" | "system-ui" | "emoji" | "math" | "fangsong"

Object literals

Const FontFamily

FontFamily: object

format

fromValue

Const FontSize

FontSize: object

fromAny

fromValue

  • fromValue(value: Value): FontSize | undefined

Const LineHeight

LineHeight: object

fromAny

fromValue