Skip to content

class HbGlyph

containing data for each glyph, in a nested table. Each nested table contains the following:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


HbGlyph.x_advance


HbGlyph.x_advance : number

horizontal advance.

HbGlyph.y_advance


HbGlyph.y_advance : number

vertical advance.

HbGlyph.x_offset


HbGlyph.x_offset : number

horizontal displacement.

HbGlyph.y_offset


HbGlyph.y_offset : number

vertical displacement.

HbGlyph.cluster


HbGlyph.cluster : integer

glyph cluster index within input.

HbGlyph.codepoint


HbGlyph.codepoint : integer

glyph index inside the font (this field name is a bit misleading, but that’s what Harfbuzz uses).

HbGlyph.flags


HbGlyph.flags : number

glyph flags