Skip to content
Search

TinyVG

lastmod 2021-12-28created 2021-12-281 edits

Features

  • Started as an SVG library for the Zig language and ended up as its own vector format
  • Today, vector graphics mostly use SVG
    • But implementing a new SVG library is hard
      • Because it is built on XML/CSS/ECMAScript and more
      • SVG itself is also so complex that images look different in each implementation
    • Especially when <text> is included, results vary by system
      • So these days the workaround is to convert all Text to Paths
  • TinyVG has the 95% of SVG features that are really needed
    • Excludes animation, scripting, external resources, hierarchical document structure, etc.
  • Design goals
    • Compact binary encoding (smaller than SVG)
    • Support for multiple platforms : GPU (Game), CPU (desktop apps), Web, Embedded
    • A subset of SVG
    • Usable for many purposes : app/toolbar icons, graphs and diagrams, comics/illustrations, etc.
    • Simple implementation
  • Achieves 40% of the size of optimized SVG

See also

Favorite site

author Zer0 sitemap