Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontMetrics

Hierarchy

Index

Constructors

constructor

Properties

cellHeight

cellHeight: number = 32

cellWidth

cellWidth: number = 32

deleted

deleted: AsyncEvent<string> = new AsyncEvent<string>()

id

id: string

isPersistent

isPersistent: boolean = false

name

name: string

startCharacter

startCharacter: number = 32

Optional templatePath

templatePath: undefined | string

textureHeight

textureHeight: number = 256

textureWidth

textureWidth: number = 512

widths

widths: object

Type declaration

  • [charCode: string]: number

Methods

copy

deserialize

destroy

  • destroy(): void

isA

  • isA<T>(type: object): boolean

isLoaded

  • isLoaded(): boolean

save

  • save(folderPath?: undefined | string): void

serialize

setProperty

  • setProperty(name: string, value: any): void

setState

upgrade