Commit fe95143
Port text rendering from ttf-parser to skrifa
This replaces ttf-parser with skrifa for all font parsing and text rendering.
fontdb changes:
- Vendor fontdb 0.23.0 as a workspace crate
- Replace ttf-parser with skrifa for font parsing
- Use skrifa's MetadataProvider for font attributes and metrics
usvg changes:
- Add skrifa_colr.rs: COLR glyph painting using skrifa's ColorPainter
- Add skrifa_metrics.rs: Font metrics extraction using skrifa
- Update flatten.rs: Use skrifa for glyph outlines and bitmap extraction
- Update layout.rs: Use skrifa for font metrics and harfrust for shaping
- Replace rustybuzz with harfrust for text shaping
- Update test reference images for new skrifa-based rendering
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 9876cd4 commit fe95143
File tree
37 files changed
+2534
-381
lines changed- .github
- crates
- fontdb
- src
- tests
- fonts
- resvg/tests/tests/text
- color-font
- font-variation-settings
- text
- usvg
- src
- parser
- text
- tests/files
37 files changed
+2534
-381
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
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 | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments