For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias CreateRasterizer
Type Declaration
- (options: TinySDFOptions, padding: number): Rasterizer
Parameters
- options: TinySDFOptions
what to draw with, whose
buffersizes the canvas - padding: number
the room to leave around each glyph in the bitmap, which is not that buffer
Returns Rasterizer
- options: TinySDFOptions
Builds the thing that rasterizes a glyph. Taken as a dependency so that a test can stand in for the canvas it would otherwise need to draw on.