[][src]Macro embedded_graphics::text_8x16

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

Render text using the Font8x16 font

use embedded_graphics::{text_8x16, prelude::*, fonts::Font8x16};

let text: Font8x16<u8> = text_8x16!("Hello world!");
let styled_text: Font8x16<u8> = text_8x16!(
    "Hello world!",
    stroke = Some(10u8),
    fill = Some(20u8)
);

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