Overview of HarfRust
mainHarfRust is a Rust port of the HarfBuzz text shaping engine. It is designed to provide text shaping capabilities within the Rust ecosystem, specifically targeting compatibility with the skrifa ecosystem by using read-fonts for font parsing. It currently matches HarfBuzz [v14.3.1].
Key characteristics:
- Safety: The library is completely safe; there is no
unsafecode in the library or most of its dependencies (excludingbytemuck). - Performance: It is generally less than 25% slower than the original HarfBuzz on common fonts.
- Conformance: While it passes most HarfBuzz tests and fuzzing suites, it may return errors on malformed fonts where HarfBuzz would typically use a fallback/dummy shaper.