Skip to content

Class: FontGlyphBitmap ​

Defined in: src/ss/format/font-glyph-bitmap.ts:11

Constructors ​

Constructor ​

new FontGlyphBitmap(): FontGlyphBitmap

Returns ​

FontGlyphBitmap

Properties ​

bb ​

bb: ByteBuffer | null = null

Defined in: src/ss/format/font-glyph-bitmap.ts:12


bb_pos ​

bb_pos: number = 0

Defined in: src/ss/format/font-glyph-bitmap.ts:13

Methods ​

__init() ​

__init(i, bb): FontGlyphBitmap

Defined in: src/ss/format/font-glyph-bitmap.ts:14

Parameters ​

i ​

number

bb ​

ByteBuffer

Returns ​

FontGlyphBitmap


atlas() ​

atlas(obj?): Region | null

Defined in: src/ss/format/font-glyph-bitmap.ts:34

Parameters ​

obj? ​

Region

Returns ​

Region | null


channel() ​

channel(): number

Defined in: src/ss/format/font-glyph-bitmap.ts:61

Returns ​

number


id() ​

id(): number

Defined in: src/ss/format/font-glyph-bitmap.ts:29

Returns ​

number


offset() ​

offset(obj?): Vec2 | null

Defined in: src/ss/format/font-glyph-bitmap.ts:39

Parameters ​

obj? ​

Vec2

Returns ​

Vec2 | null


page() ​

page(): number

Defined in: src/ss/format/font-glyph-bitmap.ts:56

Returns ​

number


text() ​

Call Signature ​

text(): string | null

Defined in: src/ss/format/font-glyph-bitmap.ts:49

Returns ​

string | null

Call Signature ​

text(optionalEncoding): string | Uint8Array<ArrayBufferLike> | null

Defined in: src/ss/format/font-glyph-bitmap.ts:50

Parameters ​
optionalEncoding ​

Encoding

Returns ​

string | Uint8Array<ArrayBufferLike> | null


widthAdvance() ​

widthAdvance(): number

Defined in: src/ss/format/font-glyph-bitmap.ts:44

Returns ​

number


addAtlas() ​

static addAtlas(builder, atlasOffset): void

Defined in: src/ss/format/font-glyph-bitmap.ts:74

Parameters ​

builder ​

Builder

atlasOffset ​

number

Returns ​

void


addChannel() ​

static addChannel(builder, channel): void

Defined in: src/ss/format/font-glyph-bitmap.ts:94

Parameters ​

builder ​

Builder

channel ​

number

Returns ​

void


addId() ​

static addId(builder, id): void

Defined in: src/ss/format/font-glyph-bitmap.ts:70

Parameters ​

builder ​

Builder

id ​

number

Returns ​

void


addOffset() ​

static addOffset(builder, offsetOffset): void

Defined in: src/ss/format/font-glyph-bitmap.ts:78

Parameters ​

builder ​

Builder

offsetOffset ​

number

Returns ​

void


addPage() ​

static addPage(builder, page): void

Defined in: src/ss/format/font-glyph-bitmap.ts:90

Parameters ​

builder ​

Builder

page ​

number

Returns ​

void


addText() ​

static addText(builder, textOffset): void

Defined in: src/ss/format/font-glyph-bitmap.ts:86

Parameters ​

builder ​

Builder

textOffset ​

number

Returns ​

void


addWidthAdvance() ​

static addWidthAdvance(builder, widthAdvance): void

Defined in: src/ss/format/font-glyph-bitmap.ts:82

Parameters ​

builder ​

Builder

widthAdvance ​

number

Returns ​

void


endFontGlyphBitmap() ​

static endFontGlyphBitmap(builder): number

Defined in: src/ss/format/font-glyph-bitmap.ts:98

Parameters ​

builder ​

Builder

Returns ​

number


getRootAsFontGlyphBitmap() ​

static getRootAsFontGlyphBitmap(bb, obj?): FontGlyphBitmap

Defined in: src/ss/format/font-glyph-bitmap.ts:20

Parameters ​

bb ​

ByteBuffer

obj? ​

FontGlyphBitmap

Returns ​

FontGlyphBitmap


getSizePrefixedRootAsFontGlyphBitmap() ​

static getSizePrefixedRootAsFontGlyphBitmap(bb, obj?): FontGlyphBitmap

Defined in: src/ss/format/font-glyph-bitmap.ts:24

Parameters ​

bb ​

ByteBuffer

obj? ​

FontGlyphBitmap

Returns ​

FontGlyphBitmap


startFontGlyphBitmap() ​

static startFontGlyphBitmap(builder): void

Defined in: src/ss/format/font-glyph-bitmap.ts:66

Parameters ​

builder ​

Builder

Returns ​

void