Skip to main content

Module svg

Module svg 

Source
Expand description

Restricted SVG rendering with bundled fonts and no external resources.

Enums§

Error

Constants§

MAX_SOURCE
Maximum encoded SVG source size, before parsing or font loading.

Functions§

rasterize
Rasterize local SVG using bounded geometry and bundled text fonts. Images, filters, reuse and markers are unsupported; missing glyphs return an error.
validate
Validate local SVG input without loading fonts or allocating pixels.