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

CreateRasterizer: (options: TinySDFOptions, padding: number) => Rasterizer

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.

Type Declaration

    • (options: TinySDFOptions, padding: number): Rasterizer
    • Parameters

      • options: TinySDFOptions

        what to draw with, whose buffer sizes the canvas

      • padding: number

        the room to leave around each glyph in the bitmap, which is not that buffer

      Returns Rasterizer

Was this helpful?