//! Text measurement traits shared between layout and renderer crates.
//!
//! This API is stable enough for current integrations, but it is planned for a
//! future refactor together with font management and text config ownership.
use crateDimensions;
/// Closure type used to measure text during layout.
pub type TextMeasurer<'a, TextConfig> = dyn Fn + 'a;
/// Implemented by renderers that can measure text for layout.
///
/// A renderer provides a closure that maps `(text, config)` into measured
/// [`Dimensions`]. Layout systems call this closure while computing text nodes.
/// Layout-side receiver for text measuring functions.
///
/// This trait currently has limited usage in workspace crates and is expected to
/// evolve as text APIs are refactored.