GlyphMetrics
Defined in: packages/sigma/src/core/sdf-atlas.ts:20
Metrics for a single glyph in the atlas.
Properties
Section titled “Properties”advance
Section titled “advance”advance:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:32
Horizontal advance (distance to next character origin)
atlasHeight
Section titled “atlasHeight”atlasHeight:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:40
Height in atlas texture (pixels, includes SDF buffer)
atlasIndex
Section titled “atlasIndex”atlasIndex:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:42
Index of the atlas texture (for multiple texture support)
atlasWidth
Section titled “atlasWidth”atlasWidth:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:38
Width in atlas texture (pixels, includes SDF buffer)
atlasX
Section titled “atlasX”atlasX:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:34
X position in atlas texture (pixels)
atlasY
Section titled “atlasY”atlasY:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:36
Y position in atlas texture (pixels)
bearingX
Section titled “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
Section titled “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
Section titled “charCode”charCode:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:22
Character code (Unicode code point)
height
Section titled “height”height:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:26
Glyph height in pixels (at base font size)
width:
number
Defined in: packages/sigma/src/core/sdf-atlas.ts:24
Glyph width in pixels (at base font size)