Interface ScalerContext

Hierarchy

  • ScalerContext

Properties

fontString: ((fauxBold, fauxItalic) => string)

Type declaration

    • (fauxBold, fauxItalic): string
    • Parameters

      • fauxBold: boolean
      • fauxItalic: boolean

      Returns string

getAdvance: ((text) => number)

Type declaration

    • (text): number
    • Parameters

      • text: string

      Returns number

getBounds: ((text, fauxBold, fauxItalic) => Rect)

Type declaration

    • (text, fauxBold, fauxItalic): Rect
    • Parameters

      • text: string
      • fauxBold: boolean
      • fauxItalic: boolean

      Returns Rect

getFontMetrics: (() => FontMetrics)

Type declaration

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

Type declaration

    • (text, bounds): TexImageSource
    • Parameters

      • text: string
      • bounds: Rect

      Returns TexImageSource

Generated using TypeDoc