Skip to content

Commit

Permalink
Add font pictures to docs (#29)
Browse files Browse the repository at this point in the history
* Add font pictures to docs
  • Loading branch information
Finomnis authored Dec 11, 2024
1 parent 7da352b commit b3b94e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub trait Font {
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"));
Expand Down

0 comments on commit b3b94e3

Please sign in to comment.