Benchmarks
Glyph Paths
16x faster than HarfBuzz, 10x faster than opentype.js for path extraction.
Text to SVG
Full text-to-SVG pipeline including shaping and path generation. 1.2-1.5x faster than HarfBuzz, 4-6x faster than opentype.js.
Text Shaping
Basic Shaping
Cyrillic Scripts
1.2-1.4x faster than HarfBuzz across Russian, Ukrainian, and Belarusian. 17-56x faster than opentype.js.
CJK Scripts
1.3-1.5x faster than HarfBuzz for CJK text, 11-13x faster than opentype.js.
Latin Scripts
1.5x faster than HarfBuzz, 22x faster than opentype.js for Latin text.
RTL Scripts
1.2-1.6x faster than HarfBuzz for Arabic and Hebrew. 33-100x faster than opentype.js.
Complex Scripts
TextShaper outperforms HarfBuzz on Indic and Southeast Asian scripts, 8-17x faster than opentype.js.
Greek
1.2x faster than HarfBuzz, 28x faster than opentype.js for Greek text.
Caching Performance
Shape plan caching provides significant speedups for repeated shaping.
Real-World Simulations
Rasterization
Compared against FreeType2 (WebAssembly). TextShaper is 1.6-11x faster at all sizes.