Structs§
Functions§
- begin_
frame - Call this at the start of each frame to enable frame-aware caching.
- current_
frame - 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
- register_
font_ data - Register a font blob into the global FontSystem.
- shape_
line - wrap_
line_ ranges - Like
wrap_lines, but returns byte ranges into the originaltextfor each visual line. This is required for multi-line editing so caret/selection mapping stays correct. - 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.