pub fn layout(
        &self,
        text: String,
        font_id: FontId,
        color: crate::Color32,
        wrap_width: f32,
    ) -> Arc<Galley> {
        let job = LayoutJob::simple(text, font_id, color, wrap_width);
        self.layout_job(job)
    }
/// Will wrap text at the given width and line break at `\n`.
///
/// The implementation uses memoization so repeated calls are cheap.
Will wrap text at the given width and line break at `\n`.
The implementation uses memoization so repeated calls are cheap.
Will wrap text at the given width and line break at ` \ n ` . The implementation uses memoization so repeated calls are cheap .
pub fn layout(
        &self,
        text: String,
        font_id: FontId,
        color: crate::Color32,
        wrap_width: f32,
    ) -> Arc<Galley> {
        let job = LayoutJob::simple(text, font_id, color, wrap_width);
        self.layout_job(job)
    }
pub fn layout ( & self , text : String , font_id : FontId , color : crate :: Color32 , wrap_width : f32 , ) -> Arc < Galley > { let job = LayoutJob :: simple ( text , font_id , color , wrap_width ) ; self . layout_job ( job ) }
Will wrap text at the given width and line break at `\n`.
Will wrap text at the given width and line break at ` \ n ` .
&self
text
String
font_id
FontId
color
crate::Color32
wrap_width
f32
&self
text
String
font_id
FontId
color
crate::Color32
wrap_width
f32