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.

Core

Live Layout

Resize the container and watch text reflow in real time. Zero DOM measurements — pure prefix-sum binary search.

Align

Justification

Left, center, right, and full justify applied in-place on the SoA span arrays with zero allocation.

Bidi

RTL / Mixed Text

UAX#9 bidi algorithm with stack-based embedding levels resolving Hebrew, Arabic, and Latin in correct visual order.

Truncate

Ellipsis Modes

End, middle, and start truncation using binary search on prefix sums for O(log n) break finding.

Interact

Hit Testing

Click anywhere on laid-out text to place a caret. Binary search on lines, linear scan on spans, sub-glyph interpolation.

Perf

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.

Running tests...

Benchmarks

Median of 10,000 iterations per metric, measured in this browser tab.

MetricTimeNotes
Running benchmarks...