Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Glyph

Hierarchy

  • Glyph

Index

Constructors

constructor

  • new Glyph(code: number, x: number, y: number, width: number, height: number, offsetX?: number, offsetY?: number, advanceWidth?: number, surface?: Surface, isSurfaceValid?: boolean): Glyph
  • Parameters

    • code: number
    • x: number
    • y: number
    • width: number
    • height: number
    • Optional offsetX: number
    • Optional offsetY: number
    • Optional advanceWidth: number
    • Optional surface: Surface
    • Optional isSurfaceValid: boolean

    Returns Glyph

Properties

_atlas

_atlas: SurfaceAtlas

advanceWidth

advanceWidth: number

code

code: number

height

height: number

isSurfaceValid

isSurfaceValid: boolean

offsetX

offsetX: number

offsetY

offsetY: number

surface

surface: Surface

width

width: number

x

x: number

y

y: number

Methods

renderingWidth

  • renderingWidth(fontSize: number): number
  • Parameters

    • fontSize: number

    Returns number

Generated using TypeDoc