Interface ScalerContext

Hierarchy

  • ScalerContext

Properties

fontString: (() => string)

Type declaration

    • (): string
    • Returns string

getTextAdvance: ((text: string) => number)

Type declaration

    • (text: string): number
    • Parameters

      • text: string

      Returns number

getTextBounds: ((text: string) => Rect)

Type declaration

    • (text: string): Rect
    • Parameters

      • text: string

      Returns Rect

generateFontMetrics: (() => FontMetrics)

Type declaration

generateImage: ((text: string, bounds: Rect) => TexImageSource)

Type declaration

    • (text: string, bounds: Rect): TexImageSource
    • Parameters

      • text: string
      • bounds: Rect

      Returns TexImageSource

Generated using TypeDoc