[][src]Function badgen::write_badge_with_font

pub fn write_badge_with_font<W, F>(
    w: &mut W,
    style: &Style<'_>,
    status: &str,
    label: Option<&str>,
    font: &mut F,
    scratch: &mut String
) -> Result<(), Error> where
    W: Write,
    F: Font

Writes an SVG badge to a fmt::Write given a style, status, optional label, font and scratch space.

The scratch space is used for minimal to zero allocations with repeated use.

Prepare fonts for this function with font or font_with_precision.