Function layout

Source
pub fn layout(
    fonts: &mut FontsImpl,
    pixels_per_point: f32,
    job: Arc<LayoutJob>,
) -> Galley
Expand description

Layout text into a Galley.

In most cases you should use crate::FontsView::layout_job instead since that memoizes the input, making subsequent layouting of the same text much faster.