Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Font

Hierarchy

  • Font

Index

Constructors

constructor

  • new Font(fontStyle: string, fontVariant: string, fontWeight: string, fontSize: string, fontFamily: string, inherit?: string | Font): Font
  • Parameters

    • fontStyle: string
    • fontVariant: string
    • fontWeight: string
    • fontSize: string
    • fontFamily: string
    • Optional inherit: string | Font

    Returns Font

Properties

Readonly fontFamily

fontFamily: string

Readonly fontSize

fontSize: string

Readonly fontStyle

fontStyle: string

Readonly fontVariant

fontVariant: string

Readonly fontWeight

fontWeight: string

Static Readonly styles

styles: "normal|italic|oblique|inherit" = "normal|italic|oblique|inherit"

Static Readonly variants

variants: "normal|small-caps|inherit" = "normal|small-caps|inherit"

Static Readonly weights

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

Methods

toString

  • toString(): string

Static parse

  • parse(font?: string, inherit?: string | Font): Font
  • Parameters

    • Default value font: string = ""
    • Optional inherit: string | Font

    Returns Font

Generated using TypeDoc