[][src]Macro embedded_graphics::text_12x16

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

Render text using the Font12x16 font

use embedded_graphics::{text_12x16, prelude::*, fonts::Font12x16, pixelcolor::Rgb565};

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

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