From 761e8b5c3c022b32ebefd68e303e1056d1db842c Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 27 Mar 2023 14:47:02 +0100 Subject: [PATCH] MicroPython: Don't include Hershey font map. --- libraries/hershey_fonts/hershey_fonts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/hershey_fonts/hershey_fonts.cpp b/libraries/hershey_fonts/hershey_fonts.cpp index cd1ad432..9962f328 100644 --- a/libraries/hershey_fonts/hershey_fonts.cpp +++ b/libraries/hershey_fonts/hershey_fonts.cpp @@ -3,6 +3,7 @@ #include namespace hershey { +#ifndef MICROPY_BUILD_TYPE std::map fonts = { { "sans", &futural }, //{ "sans_bold", &futuram }, @@ -13,6 +14,7 @@ namespace hershey { { "serif", ×r }, //{ "serif_bold", ×rb } }; +#endif bool has_font(std::string_view font) { if(font == "sans"