ASCIIGround (Development)
GitHub
NPM
Demo (development)
Preparing search index...
<internal>
GlyphAtlas
Class GlyphAtlas
Owns cached glyph textures and packs rasterized characters into atlas pages.
Index
Constructors
constructor
Methods
get
First
Page
destroy
reset
get
Glyph
Properties
size
Constructors
constructor
new
GlyphAtlas
(
gl
:
WebGL2RenderingContext
,
canvas
:
HTMLCanvasElement
,
context
:
CanvasRenderingContext2D
,
)
:
GlyphAtlas
Parameters
gl
:
WebGL2RenderingContext
canvas
:
HTMLCanvasElement
context
:
CanvasRenderingContext2D
Returns
GlyphAtlas
Methods
get
First
Page
getFirstPage
()
:
AtlasPage
Returns
AtlasPage
destroy
destroy
()
:
void
Returns
void
reset
reset
()
:
void
Returns
void
get
Glyph
getGlyph
(
character
:
string
,
fontSize
:
number
,
fontFamily
:
string
)
:
Glyph
Parameters
character
:
string
fontSize
:
number
fontFamily
:
string
Returns
Glyph
Properties
Readonly
size
size
:
number
Settings
Member Visibility
Protected
Internal
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
First
Page
destroy
reset
get
Glyph
Properties
size
GitHub
Report an Issue
GitHub
NPM
Demo (development)
ASCIIGround (Development)
Loading...
Owns cached glyph textures and packs rasterized characters into atlas pages.