tavlarides / usvg

C++ SVG library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

usvg

usvg? μsvg? micro-svg?

C++ SVG library: reading, writing, modifying, and rendering. Does not support entire SVG specification but should handle most documents correctly.

Features

  • basic CSS support, including dynamic styling
  • SVG font support
  • extension mechanism enabling custom behavior - used by ugui to implement a SVG-based GUI
  • dirty rectangle/damage tracking
  • preserves document structure, including unrecognized attributes and elements

Example

Clone ugui-example, then cd usvg && make to generate Release/usvgtest. Run usvgtest <somefile>.svg to save an image to _out.png and save SVG to _out.svg. This will also compare the rendered image to _ref.png if present.

The makefile currently only supports Linux, but adding other platforms is straightforward - see Makefile in nanovgXC

Dependencies

About

C++ SVG library


Languages

Language:C 79.5%Language:C++ 20.4%Language:Makefile 0.1%