Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CharacterInfo

Use CharacterInfo to create glyph metrics for a bitmap font.

Hierarchy

  • CharacterInfo

Index

Constructors

constructor

  • new CharacterInfo(value?: number, advance?: number, bearingX?: number, bearingY?: number, width?: number, height?: number, characterRegion?: Rect): CharacterInfo
  • Parameters

    • Optional value: number
    • Optional advance: number
    • Optional bearingX: number
    • Optional bearingY: number
    • Optional width: number
    • Optional height: number
    • Optional characterRegion: Rect

    Returns CharacterInfo

Properties

advance

advance: number

The horizontal distance, in pixels, from this character's origin to the next character's origin.

bearingX

bearingX: number

The horizontal distance in pixels from this glyph's origin to the beginning of the glyph image.

bearingY

bearingY: number

The vertical distance in pixels from the baseline to the glyph's ymax (top of the glyph bounding box).

characterRegion

characterRegion: Rect

The glyph's uv coordinates in the texture atlas. x, y is bottom left.

height

height: number

The height of the glyph image.

value

value: number

UTF32 character value of the glyph.

width

width: number

The width of the glyph image.

Static _size

_size: number

Methods

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc