Skip to main contentCrate k2f_text
Source - BidiRun
- Font
- FontLibrary
- FontRun
- One substring shaped with a single embedded font key (family stem).
- GlyphInk
- Outline bounding box of a single glyph, millipt.
- TextShaper
- byte_to_char_index
- Byte offset in
text → UTF-8 character index. rustybuzz clusters are bytes;
selection and GlyphPosition.cluster use character indexes. - is_default_ignorable
- Unicode default-ignorable formatting characters (ZWJ, VS, keycap, etc.).
- is_layout_whitespace
- Line/tab breaks embedded in text nodes (no glyph required).
- is_significant
- split_by_coverage
- Split
text into runs by embedded-font coverage. Primary family is tried first. - visual_runs
- Resolve embedding levels, then return visual runs for shaping.
Line breaking happens first; call this per wrapped line (or on a wrap token).