Skip to main content

Module text_measure

Module text_measure 

Source
Expand description

Shared CPU TextMeasurer used by the software rasterizer backends (pixels, vulkan). Both backends draw text by rasterizing glyphs directly into a pixel buffer rather than through a GPU glyph atlas, so they share one font-backed measurer plus its fallback-metrics path for when no font is installed.

Structs§

CachedFontTextMeasurer
SoftwareTextResources
Renderer-owned text resources: the resolved font used for software rasterization and measurement, if any.

Functions§

fallback_char_width
fallback_cursor_x_for_byte_offset
fallback_line_height
fallback_text_metrics