import type { Glyph } from 'pixi-silk/text';
A glyph baked into the atlas. Distances are in raster pixels, at SdfAtlas.size.
Properties#
| Property | Type | Description | Defined in |
|---|
h | number | Cell height in texels. | text/atlas.ts:23 |
left | number | Left edge of the cell relative to the pen position. | text/atlas.ts:25 |
top | number | Top edge of the cell relative to the baseline (negative is above it). | text/atlas.ts:27 |
w | number | Cell width in texels. 0 for glyphs with no ink (spaces). | text/atlas.ts:21 |
x | number | Left edge of the glyph’s cell in the atlas, in texels. | text/atlas.ts:17 |
y | number | Top edge of the cell in the atlas, in texels. | text/atlas.ts:19 |