GlyphMetrics
Defined in: packages/sigma/src/core/sdf-atlas.ts:20
Metrics for a single glyph in the atlas.
Properties
advance
advance:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:32
Horizontal advance (distance to next character origin)
atlasHeight
atlasHeight:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:40
Height in atlas texture (pixels, includes SDF buffer)
atlasIndex
atlasIndex:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:42
Index of the atlas texture (for multiple texture support)
atlasWidth
atlasWidth:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:38
Width in atlas texture (pixels, includes SDF buffer)
atlasX
atlasX:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:34
X position in atlas texture (pixels)
atlasY
atlasY:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:36
Y position in atlas texture (pixels)
bearingX
bearingX:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:28
Horizontal bearing (offset from origin to atlas region left edge, includes SDF buffer)
bearingY
bearingY:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:30
Vertical bearing (offset from baseline to atlas region top edge, includes SDF buffer)
charCode
charCode:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:22
Character code (Unicode code point)
height
height:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:26
Glyph height in pixels (at base font size)
width
width:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:24
Glyph width in pixels (at base font size)