epaint::text

Function layout

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

Layout text into a Galley.

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