Expand description
Text measurement abstraction for layout and rendering.
§Overview
This module defines the interface between the layout engine and platform-specific text measurement implementations.
It does not own or define visual text styles. Instead, it consumes already-resolved text attributes provided by higher-level layout or rendering layers.
§Responsibilities
- Accept text content and layout-related parameters
- Measure intrinsic text size (width, height, baseline)
- Provide a backend-agnostic text measurement abstraction
§Non-Responsibilities
- CSS resolution or inheritance
- Interpretation of visual styling semantics
- Rendering or draw command generation
§Data Flow
CSS → Layout → TextMeasurer → TextMetricsRe-exports§
pub use fallback::FallbackTextMeasurer;
Modules§
- fallback
- Fallback text measurer without font engine dependency.