Replace rustybuzz with HarfRust (#417)
* Use HarfRust for shaping * Replace ttf-parser with skrifa entirely * Fix clippy lints * Add shape plan cache * Bump harfrust and skrifa * Fix no_std build * Simplify the shape plan cache * Please the paperclip * Cache font ID with plan * Tune shape plan cache for "BiDi Processing" bench
This commit is contained in:
parent
3c1f6c9e8a
commit
2610c869f6
7 changed files with 221 additions and 121 deletions
|
|
@ -8,7 +8,7 @@
|
|||
Pure Rust multi-line text handling.
|
||||
|
||||
COSMIC Text provides advanced text shaping, layout, and rendering wrapped up
|
||||
into a simple abstraction. Shaping is provided by rustybuzz, and supports a
|
||||
into a simple abstraction. Shaping is provided by HarfRust, and supports a
|
||||
wide variety of advanced shaping operations. Rendering is provided by swash,
|
||||
which supports ligatures and color emoji. Layout is implemented custom, in safe
|
||||
Rust, and supports bidirectional text. Font fallback is also a custom
|
||||
|
|
@ -37,7 +37,7 @@ The following features must be supported before this is "ready":
|
|||
- [x] Text styles (bold, italic, etc.)
|
||||
- [x] Per-buffer
|
||||
- [x] Per-span
|
||||
- [x] Font shaping (using rustybuzz)
|
||||
- [x] Font shaping (using HarfRust)
|
||||
- [x] Cache results
|
||||
- [x] RTL
|
||||
- [x] Bidirectional rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue