[][src]Macro embedded_picofont::text_pico

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

Render text using the FontPico font.

use embedded_graphics::prelude::*;
use embedded_picofont::{text_pico, FontPico};

let text: FontPico<u8> = text_pico!("Hello world!");
let styled_text: FontPico<u8> = text_pico!(
    "Hello world!",
    stroke = Some(10u8),
);

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