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

googlefonts/picosvg

Repository files navigation

Travis Build Status PyPI pyup

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>

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

How to cut a new release

Use git tag -a to make a new annotated tag, or git tag -s for a GPG-signed annotated tag, if you prefer.

Name the new tag with with a leading 'v' followed by three MAJOR.MINOR.PATCH digits, like in semantic versioning. Look at the existing tags for examples.

In the tag message write some short release notes describing the changes since the previous tag.

Finally, push the tag to the remote repository (e.g. assuming upstream is called origin):

$ git push origin v0.4.3

This will trigger the CI to build the distribution packages and upload them to the Python Package Index automatically, if all the tests pass successfully.

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