prepare_svg_for_raster: Prepare SVG for rasterization (sanitize + embed fonts)
Description
Removes Google Fonts @import rules (not supported by librsvg), sanitizes
editor metadata (handled by sanitize_svg_for_raster()), then embeds fonts
referenced by the SVG into @font-face blocks.
Usage
prepare_svg_for_raster(svg_content)
Value
A sanitized SVG with embedded WOFF2 fonts.
Arguments
- svg_content
Character SVG.