Skip to content
pixi-silk
GitHub repository
Interface

Glyph

import type { Glyph } from 'pixi-silk/text';

A glyph baked into the atlas. Distances are in raster pixels, at SdfAtlas.size.

Properties#

PropertyTypeDescriptionDefined in
hnumberCell height in texels.text/atlas.ts:23
leftnumberLeft edge of the cell relative to the pen position.text/atlas.ts:25
topnumberTop edge of the cell relative to the baseline (negative is above it).text/atlas.ts:27
wnumberCell width in texels. 0 for glyphs with no ink (spaces).text/atlas.ts:21
xnumberLeft edge of the glyph’s cell in the atlas, in texels.text/atlas.ts:17
ynumberTop edge of the cell in the atlas, in texels.text/atlas.ts:19