Skip to content

Commit

Permalink
eg-font-converter: Make generated BdfFont consts public
Browse files Browse the repository at this point in the history
This matches the code generated for MonoFonts
  • Loading branch information
liclac committed Dec 18, 2024
1 parent 7adb855 commit 52f971b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eg-font-converter/src/eg_bdf_font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl EgBdfOutput {

Ok(prettyplease::unparse(&syn::parse2(quote!(
#( #comments )*
const #constant_name: ::eg_bdf::BdfFont = {
pub const #constant_name: ::eg_bdf::BdfFont = {
const fn rect(x: i32, y: i32, width: u32, height: u32) -> ::embedded_graphics::primitives::Rectangle {
::embedded_graphics::primitives::Rectangle::new(
::embedded_graphics::geometry::Point::new(x, y),
Expand Down
2 changes: 1 addition & 1 deletion eg-font-converter/tests/expected/eg_bdf_az.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const EG_BDF_AZ: ::eg_bdf::BdfFont = {
pub const EG_BDF_AZ: ::eg_bdf::BdfFont = {
const fn rect(
x: i32,
y: i32,
Expand Down

0 comments on commit 52f971b

Please sign in to comment.