Skip to main content

render_raster_htext_solid

Function render_raster_htext_solid 

Source
pub fn render_raster_htext_solid<PF: PixelFormat>(
    ren: &mut RendererBase<PF>,
    glyph: &mut GlyphRasterBin<'_>,
    x: f64,
    y: f64,
    text: &str,
    color: &PF::ColorType,
    flip: bool,
)
Expand description

Render a horizontal text string using a raster glyph generator and solid color.

Port of C++ renderer_raster_htext_solid::render_text(). Renders each character’s binary glyph as a sequence of blend_solid_hspan calls.