Puff interface
The puffed letters of a raster: the distance to their edge and how round each part is.
import type { Puff } from '@dioramajs/text/inflate'interface PuffMembers
| Name | Type | Description |
|---|---|---|
readonly data | Uint16Array | Per texel, half floats: the signed distance to the glyph edge in CSS px (positive inside), the height of the round profile at depth 1 in CSS px, the turn of the nearest letter, and that height as a share of the profile's radius (0 at the edge, 1 on the ridge). |
readonly em | number | Largest font size, px. |
readonly frame | readonly [number, number, number, number] | The field in box px: x, y, width, height. |
readonly height | number | |
readonly width | number |
Defined in packages/text/src/inflate.ts.