-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Open
SVG parsing improvements - USVG port?#1280
Description
https://github.com/RazrFalcon/resvg/tree/master/usvg
It would be nice to either:
- port library to c# (That's the best way IMO)
- compile library to every platform (iOS / MacOS, Android, Windows) (c interop)
That way parsing of SVG files would be greatly improved. Are there any
Rust devs here?
Key features of the simplified SVG
- No basic shapes (rect, circle, etc). Only paths
- Simple paths:
- Only MoveTo, LineTo, CurveTo and ClosePath will be produced
- All path segments are in absolute coordinates
- No implicit segment commands
- All values are separated by a space
- All (supported) attributes are resolved. No implicit one
usewill be resolved- Invisible elements will be removed
- Invalid elements (like
rectwith negative/zero size) will be removed- Units (mm, em, etc.) will be resolved
- Comments will be removed
- DTD will be resolved
- CSS will be resolved
styleattribute will be resolvedinheritattribute value will be resolvedcurrentColorattribute value will be resolved- Paint fallback will be resolved
- No
script(simply ignoring it)