Options
All
  • Public
  • Public/Protected
  • All
Menu

Add this component to a Font entity to specify a bitmap font.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional textureAtlas: Entity
    • Optional data: CharacterInfo[]
    • Optional size: number
    • Optional ascent: number
    • Optional descent: number

    Returns BitmapFont

Properties

ascent

ascent: number

The distance from the baseline to the font's ascent line.

data

Lists CharacterInfo data (glyphs).

descent

descent: number

Distance from the baseline to the font's descent line.

size

size: number

The Font size in World Units.

textureAtlas

textureAtlas: Entity

The entity on which to look for an Image2D component to use.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static ascent

Static cid

cid: number

Static descent

Static size

Static textureAtlas

textureAtlas: EntityComponentFieldDesc

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc