Commit 7ab92cd
committed
Add COLRv1 color font rendering support
Adds a ColorRenderer that renders COLR v0/v1 glyphs via skrifa's
ColorPainter trait and tiny-skia as the 2D backend. Each glyph is
rendered once and cached as an RGBA tile; subsequent uses composite
the cached tile. The existing outline renderer is unchanged and used
for non-color fonts via an if/else dispatch in diff_many_words.1 parent 384326b commit 7ab92cd
5 files changed
Lines changed: 934 additions & 173 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments