Interface SVGCanvas
access this type via: ui.SVGCanvas (provides, requires or uses)
--- extends:Canvas
This API represents a drawing canvas which captures all rendering in scalable vector graphics format, which for example can then be written to a file.
Functions
void setEmbedFonts(bool on)
void setSize(int w, int h)
void clear()
char[] getSVG()
void setEmbedFonts(bool on)
Set whether or not the canvas should embed all fonts into the SVG, so that the resulting SVG is self-contained. If this is not set, the SVG will instead link to the font files on disk.
void setSize(int w, int h)
Set the canvas size for the SVG document.
void clear()
Clear all data on the canvas.
char[] getSVG()
Get the SVG representing everything drawn to this canvas.