Class SdfTrFontFace<FontTypeT>

EventEmitter base class

Type Parameters

  • FontTypeT extends SdfFontType = SdfFontType

Hierarchy (view full)

Constructors

Properties

data: undefined | SdfFontData
fontFamily: string
glyphMap: Map<number, {
    char: string;
    chnl: number;
    height: number;
    id: number;
    page: number;
    width: number;
    x: number;
    xadvance: number;
    xoffset: number;
    y: number;
    yoffset: number;
}> = ...
loaded: boolean = false
maxCharHeight: number = 0

Height of the tallest character in the font including the whitespace above it in SDF/vertex units.

metrics: null | NormalizedFontMetrics = null
shaper: undefined | FontShaper
texture: ImageTexture
type: FontTypeT

Methods

  • Parameters

    • event: string
    • Optionallistener: ((target: any, data: any) => void)
        • (target, data): void
        • Parameters

          • target: any
          • data: any

          Returns void

    Returns void

  • Parameters

    • event: string
    • listener: ((target: any, data: any) => void)
        • (target, data): void
        • Parameters

          • target: any
          • data: any

          Returns void

    Returns void

  • Parameters

    • event: string
    • listener: ((target: any, data: any) => void)
        • (target, data): void
        • Parameters

          • target: any
          • data: any

          Returns void

    Returns void