pub fn layout_shape_text(
shape: &ResolvedShape,
text: &ResolvedTextBody,
font_manager: &mut FontManager,
page_number: usize,
text_directions: &[Vec<TextDirection>],
width_factor: f64,
) -> Result<ShapeTextLayout, RenderInputError>Expand description
Lays out one resolved shape’s text exactly as slide lowering draws it.
text is the shape’s own ResolvedContent::Text body and text_directions
the shape’s entry in the resolver’s paragraph directions. page_number is
the one-based number that slide-number fields show. width_factor scales
the usable width before line breaking and keeps its left edge. Lowering
passes 1.0, so that factor reproduces the drawn lines.