Structs§
Functions§
- ellipsize_
line - Return a string truncated to fit max_width at the given px size, appending ‘…’ if truncated.
- metrics_
for_ textfield - Computes caret mapping using shaping (no wrapping).
- rasterize
- shape_
line - wrap_
lines - Greedy wrap into lines that fit max_width. Prefers breaking at whitespace, falls back to grapheme boundaries. If max_lines is Some and we truncate, caller can choose to ellipsize the last visible line.