Raw bytes of the bundled fallback fonts, for callers that need to embed a font somewhere
else (rather than register it for on-screen shaping). The motivating consumer is Skribisto’s
PDF exporter, which hands these blobs to Typst so an exported PDF renders RTL scripts in the
same Noto faces the editor shapes with — one source of bytes, no screen/export drift.
A compact set of WritingSystems, backed by a u128 bitset (33
variants ≪ 128 bits). Hand-rolled to avoid a bitflags dependency
(the workspace uses none).
Disambiguates the two visual placements a single character position
can have at a soft-wrap boundary. A long paragraph that wraps across
lines K and K+1 has one character position N that sits at both the
END of line K and the START of line K+1; affinity picks which one
the caret renders at and which line Home/End-style navigation
considers “current”.
Reading direction of a run or paragraph. Re-exported at the crate
root because hosts need it to interpret DocumentFlow::direction_at.
Text direction for shaping.
Reading direction of a run or paragraph. Re-exported at the crate
root because hosts need it to interpret DocumentFlow::direction_at.
The base direction a paragraph of text takes.
Byte container owned by a FontEntry. Erased behind a trait
object so the registry can hold any of Vec<u8>, memmap2::Mmap,
or &'static [u8] (via a wrapper) without copying. fontdb’s
Source::Binary uses the same shape, so the same Arc can be
shared with the database.