Module text

Module text 

Source
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 → TextMetrics

Re-exports§

pub use fallback::FallbackTextMeasurer;

Modules§

fallback
Fallback text measurer without font engine dependency.

Structs§

GlyphMetrics
TextMeasureRequest
TextMetrics

Enums§

TextMeasureError

Traits§

TextMeasurer