Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontStyle

FontStyle defines the style of a text component, used in drawString.

Hierarchy

  • FontStyle

Index

Properties

bold

bold: boolean = false

color

color: string = "f"

The color code for this text.

italic

italic: boolean = false

shadow

shadow: boolean = false

If this is true, the background colors are returned in getFillStyle. Use drawStringFormattedShadow to automatically draw a shadow.

strikethrough

strikethrough: boolean = false

underline

underline: boolean = false

Methods

getFillStyle

  • getFillStyle(): string | null
  • Get the canvas fillStyle for this text, or null if no coloring is required (ascii.png is white, so no coloring is required for white).

    Returns string | null

Generated using TypeDoc