Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicFont

Hierarchy

  • DynamicFont

Implements

Index

Constructors

constructor

Properties

Private _atlasSize

_atlasSize: CommonSize

Private _atlases

_atlases: SurfaceAtlas[]

Private _currentAtlasIndex

_currentAtlasIndex: number

Private _destroyed

_destroyed: boolean

Private _glyphFactory

_glyphFactory: GlyphFactory

Private _glyphs

_glyphs: object

Type declaration

Private _resourceFactory

_resourceFactory: ResourceFactory

fontColor

fontColor: string

fontFamily

fontFamily: FontFamily | string | (string | SansSerif | Serif | Monospace)[]

fontWeight

fontWeight: FontWeight

hint

size

size: number

strokeColor

strokeColor: string

strokeOnly

strokeOnly: boolean

strokeWidth

strokeWidth: number

Methods

Private _addToAtlas

Private _reallocateAtlas

  • _reallocateAtlas(): void
  • Returns void

Private _removeLowUseAtlas

asBitmapFont

  • asBitmapFont(missingGlyphChar?: string): BitmapFont
  • Parameters

    • Optional missingGlyphChar: string

    Returns BitmapFont

destroy

  • destroy(): void
  • Returns void

destroyed

  • destroyed(): boolean
  • Returns boolean

glyphForCharacter

  • glyphForCharacter(code: number): Glyph

Generated using TypeDoc