-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Have
Want
Issue
- https://github.com/googlefonts/fontations/blob/main/skrifa/src/color/traversal.rs#L344 adjusts colors stops to start at 0.0.
- 👩 does not start at 0
- In this case, the simple radial gradient is converted to one with a proper focal point. However, tiny_skia doesn't support the focal radius which leads to weird artifacts.
- tiny_skia bug Text rendering linebender/tiny-skia#1 (comment)
- Oddly... not doing the color stop correction produces a better image. This is why the woman emoji going through the https://github.com/googlefonts/nanoemoji/blob/main/tools/colr2svg.py -> svg -> resvg (tiny_skia) works fine
Proposals
- Hack: Do not normalize color stops, which maybe aligns fine with nanoemoji/svg/tiny_skia? in practice
- Good fix: Proper gradient support in tiny_skia
Metadata
Metadata
Assignees
Labels
No labels