[−][src]Macro embedded_graphics::text_6x12
Render text using the Font6x12
font
use embedded_graphics::{text_6x12, prelude::*, fonts::Font6x12, pixelcolor::Rgb565}; let text: Font6x12<Rgb565> = text_6x12!("Hello world!"); let styled_text: Font6x12<Rgb565> = text_6x12!( "Hello world!", stroke = Some(Rgb565::RED), fill = Some(Rgb565::GREEN) );
Style properties like stroke
map to the method calls on the
WithStyle
trait.