From b3b94e3c74be689156cdb97269545004fee9a593 Mon Sep 17 00:00:00 2001 From: Finomnis Date: Thu, 12 Dec 2024 00:21:22 +0100 Subject: [PATCH] Add font pictures to docs (#29) * Add font pictures to docs --- Cargo.toml | 2 +- src/font.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 59656be..002310c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "u8g2-fonts" -version = "0.5.0" +version = "0.5.1" edition = "2021" rust-version = "1.62" license-file = "LICENSE" diff --git a/src/font.rs b/src/font.rs index 3985a38..47ab1d6 100644 --- a/src/font.rs +++ b/src/font.rs @@ -11,6 +11,7 @@ pub trait Font { macro_rules! font_definitions { ( $($fontname:ident),* $(,)? ) => { $( + #[doc = concat!(r#""#)] pub struct $fontname; impl $crate::Font for $fontname { const DATA: &'static [u8] = include_bytes!(concat!(stringify!($fontname), ".u8g2font"));