Represents a span of character all with the same formatting

Implements

Constructors

Accessors

  • get fontName(): string
  • Will default from paragraph if not specified

    Returns string

  • get fontSize(): number
  • Will default from paragraph if not specified

    Returns number

  • get kerningMin(): number
  • Specifies the minimum font size at which character kerning will occur for this text run. If this attribute is omitted, than kerning will occur for all font sizes down to a 0 point font.

    Returns number

  • get letterSpacing(): number
  • Specifies the spacing between characters within a text run.

    Returns number

  • get offset(): number
  • percent of font height shifted up + down. does not affect line-height.

    Returns number

  • get text(): string
  • The characters included in this run

    Returns string

  • get textCap(): TextCap
  • Specifies the capitalization that is to be applied to the text run during layout and rendering. This does not actually effect the stored results

    Returns TextCap

Methods