[][src]Macro embedded_graphics::text_6x8

macro_rules! text_6x8 {
    ($text:expr $(, $style_key:ident = $style_value:expr )* $(,)?) => { ... };
}

Render text using the Font6x8 font

use embedded_graphics::{text_6x8, prelude::*, fonts::Font6x8, pixelcolor::Rgb565};

let text: Font6x8<Rgb565> = text_6x8!("Hello world!");
let styled_text: Font6x8<Rgb565> = text_6x8!(
    "Hello world!",
    stroke = Some(Rgb565::RED),
    fill = Some(Rgb565::GREEN)
);

Style properties like stroke map to the method calls on the WithStyle trait.