8000 GitHub - googlefonts/picosvg at v0.9.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

googlefonts/picosvg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Build Status PyPI Dependencies

picosvg

Tool to simplify SVGs. Converts an input svg into a "pico" svg:

  • Exactly 1 <defs> element, first child of root
  • Only gradients defined under <defs>
  • Only <path> elements without stroke or clipping after the initial <defs>
  • Only absolute coordinates

Clip paths and strokes are rendered into equivalent paths using Skia via skia-pathops, <use> references are materialized, etc.

Some SVG features are not supported, of particular note:

  • <filter>
  • <mask>

Usage:

pip install -e .
picosvg mysvg.svg

Releasing

See https://googlefonts.github.io/python#make-a-release.

About

Helps simplify SVG files. Intended for use as part of a font build.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

Languages

0