Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitmapChar

A BitmapChar contains the information about one char of a bitmap font. You don't have to use this class directly in most cases. The TextField class contains methods that handle bitmap fonts for you.

Hierarchy

  • BitmapChar

Index

Constructors

constructor

  • new BitmapChar(id: number, texture: Texture, xOffset: number, yOffset: number, xAdvance: number): BitmapChar

Properties

charID

charID: number

The unicode ID of the char.

height

height: number

The height of the character in points.

texture

texture: Texture

The texture of the character.

width

width: number

The width of the character in points.

xAdvance

xAdvance: number

The number of points the cursor has to be moved to the right for the next char.

xOffset

xOffset: number

The number of points to move the char in x direction on character arrangement.

yOffset

yOffset: number

The number of points to move the char in y direction on character arrangement.

Methods

addKerning

  • addKerning(charID: number, amount: number): void

createImage

getKerning

  • getKerning(charID: number): number

Protected get_charID

  • get_charID(): number

Protected get_height

  • get_height(): number

Protected get_texture

Protected get_width

  • get_width(): number

Protected get_xAdvance

  • get_xAdvance(): number

Protected get_xOffset

  • get_xOffset(): number

Protected get_yOffset

  • get_yOffset(): number

Generated using TypeDoc