Skip to content

Commit

Permalink
Improve processing of clip, transform, group
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheeter committed May 26, 2021
1 parent a4a53f7 commit 48c99ef
Show file tree
Hide file tree
Showing 54 changed files with 630 additions and 479 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ 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>`
* After the initial `<defs>`, only `<g>` and `<path>`
* `<g>` is eliminated when possible, but may be retained for opacity
* Only absolute coordinates
* Only commands that specify full coordinates, no shorthand (H, S, etc)

Clip paths and strokes are rendered into equivalent paths using [Skia](https://skia.org/) via [skia-pathops](https:/fonttools/skia-pathops), `<use>` references are materialized, etc.

Expand Down
Loading

0 comments on commit 48c99ef

Please sign in to comment.