Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Font

Implements

Index

Constructors

constructor

Properties

Readonly family

family: string | readonly string[]

Readonly height

height: null | LineHeight

Readonly size

size: null | FontSize

Readonly stretch

stretch: undefined | FontStretch

Readonly stringValue

stringValue: undefined | string

Readonly style

style: undefined | FontStyle

Readonly variant

variant: undefined | FontVariant

Readonly weight

weight: undefined | FontWeight

Methods

debug

  • debug(output: Output<unknown>): void
  • Parameters

    Returns void

equals

  • equals(that: unknown): boolean
  • Parameters

    • that: unknown

    Returns boolean

equivalentTo

  • equivalentTo(that: unknown, epsilon?: number): boolean
  • Parameters

    • that: unknown
    • Optional epsilon: number

    Returns boolean

interpolateTo

  • Parameters

    Returns Interpolator<Font>

  • Parameters

    • that: unknown

    Returns null | Interpolator<Font>

toAny

  • Returns FontInit

toString

  • toString(): string
  • Returns string

withFamily

  • withFamily(family: string | readonly string[]): Font
  • Parameters

    • family: string | readonly string[]

    Returns Font

withHeight

  • Parameters

    Returns Font

withSize

  • Parameters

    Returns Font

withStretch

  • Parameters

    Returns Font

withStyle

  • Parameters

    Returns Font

withVariant

  • Parameters

    Returns Font

withWeight

  • Parameters

    Returns Font

Static create

Static family

  • family(family: string | readonly string[]): Font
  • Parameters

    • family: string | readonly string[]

    Returns Font

Static form

  • Parameters

    • Optional unit: Font

    Returns Form<Font, AnyFont>

Static fromAny

  • Parameters

    Returns Font

Static fromInit

  • Parameters

    Returns Font

Static fromValue

  • Parameters

    Returns null | Font

Static isAny

  • isAny(value: unknown): value is AnyFont
  • Parameters

    • value: unknown

    Returns value is AnyFont

Static isInit

  • isInit(value: unknown): value is FontInit
  • Parameters

    • value: unknown

    Returns value is FontInit

Static parse

  • parse(string: string): Font
  • Parameters

    • string: string

    Returns Font

Static size

  • Parameters

    • size: null | AnyFontSize
    • family: string | readonly string[]

    Returns Font

Static stretch

  • stretch(stretch: undefined | FontStretch, family: string | readonly string[]): Font
  • Parameters

    • stretch: undefined | FontStretch
    • family: string | readonly string[]

    Returns Font

Static style

  • style(style: undefined | FontStyle, family: string | readonly string[]): Font
  • Parameters

    • style: undefined | FontStyle
    • family: string | readonly string[]

    Returns Font

Static variant

  • variant(variant: undefined | FontVariant, family: string | readonly string[]): Font
  • Parameters

    • variant: undefined | FontVariant
    • family: string | readonly string[]

    Returns Font

Static weight

  • weight(weight: undefined | FontWeight, family: string | readonly string[]): Font
  • Parameters

    • weight: undefined | FontWeight
    • family: string | readonly string[]

    Returns Font

Generated using TypeDoc