fn render_text_spans(&self, raster: &mut Raster<SRgb8>) -> Result<()> {
        self.check_justification()?;
        for span in &self.spans {
            let x = self.span_x(span)?.into();
            let y = self.span_y(span)?.into();
            let font = span.state.font(self.fonts)?;
            span.render_text(raster, &font, x, y)?;
        }
        Ok(())
    }
/// Render spans for the current text rectangle.
Render spans for the current text rectangle.
Render spans for the current text rectangle .
fn render_text_spans(&self, raster: &mut Raster<SRgb8>) -> Result<()> {
        self.check_justification()?;
        for span in &self.spans {
            let x = self.span_x(span)?.into();
            let y = self.span_y(span)?.into();
            let font = span.state.font(self.fonts)?;
            span.render_text(raster, &font, x, y)?;
        }
        Ok(())
    }
fn render_text_spans ( & self , raster : & mut Raster < SRgb8 > ) -> Result < ( ) > { self . check_justification ( ) ? ; for span in & self . spans { let x = self . span_x ( span ) ? . into ( ) ; let y = self . span_y ( span ) ? . into ( ) ; let font = span . state . font ( self . fonts ) ? ; span . render_text ( raster , & font , x , y ) ? ; } Ok ( ( ) ) }
Render spans for the current text rectangle.
Render spans for the current text rectangle .
&self
raster
&mut Raster<SRgb8>