Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

GlyphMetrics

Defined in: packages/sigma/src/core/sdf-atlas.ts:20

Metrics for a single glyph in the atlas.

advance: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:32

Horizontal advance (distance to next character origin)


atlasHeight: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:40

Height in atlas texture (pixels, includes SDF buffer)


atlasIndex: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:42

Index of the atlas texture (for multiple texture support)


atlasWidth: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:38

Width in atlas texture (pixels, includes SDF buffer)


atlasX: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:34

X position in atlas texture (pixels)


atlasY: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:36

Y position in atlas texture (pixels)


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: 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: number

Defined in: packages/sigma/src/core/sdf-atlas.ts:22

Character code (Unicode code point)


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)