u8g2-fonts 0.7.2

A text renderer for embedded-graphics, based on U8g2.
Documentation
/// An abstract [U8g2](https://github.com/olikraus/u8g2/wiki/fntlistall) font interface.
///
/// Contains all information to create a [`FontRenderer`](crate::FontRenderer).
///
/// Implemented by [all available fonts](crate::fonts).
pub trait Font {
    #[doc(hidden)]
    const DATA: &'static [u8];
}

macro_rules! font_definitions {
    ( $($fontname:ident),* $(,)? ) => {
        $(
            #[doc = concat!(r#"<img src="https://raw.githubusercontent.com/wiki/olikraus/u8g2/fntpic/"#, stringify!($fontname), r#".png">"#)]
            pub struct $fontname;
            impl $crate::Font for $fontname {
                const DATA: &'static [u8] = include_bytes!(concat!(stringify!($fontname), ".u8g2font"));
            }
        )*
    };
}

pub(crate) use font_definitions;