ZeroText
Demos
Interactive browser demos for ZeroText's zero-allocation text layout engine. Sub-microsecond cached layouts, arena-pooled memory, and a 5KB core — running live in your browser right now.
Live Layout
Resize the container and watch text reflow in real time. Zero DOM measurements — pure prefix-sum binary search.
Justification
Left, center, right, and full justify applied in-place on the SoA span arrays with zero allocation.
RTL / Mixed Text
UAX#9 bidi algorithm with stack-based embedding levels resolving Hebrew, Arabic, and Latin in correct visual order.
Ellipsis Modes
End, middle, and start truncation using binary search on prefix sums for O(log n) break finding.
Hit Testing
Click anywhere on laid-out text to place a caret. Binary search on lines, linear scan on spans, sub-glyph interpolation.
Cache Benchmark
Watch hot-path cache hits resolve in under 100 nanoseconds. FNV-1a numeric hashing eliminates string allocation.
Test Suite
All core tests running live via the embedded engine.
Benchmarks
Median of 10,000 iterations per metric, measured in this browser tab.
| Metric | Time | Notes |
|---|---|---|
| Running benchmarks... | ||