MicroPython: Don't include Hershey font map.

pull/733/head
Phil Howard 2023-03-27 14:47:02 +01:00
rodzic 07bc005958
commit 761e8b5c3c
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
#include <cmath> #include <cmath>
namespace hershey { namespace hershey {
#ifndef MICROPY_BUILD_TYPE
std::map<std::string, const font_t*> fonts = { std::map<std::string, const font_t*> fonts = {
{ "sans", &futural }, { "sans", &futural },
//{ "sans_bold", &futuram }, //{ "sans_bold", &futuram },
@ -13,6 +14,7 @@ namespace hershey {
{ "serif", &timesr }, { "serif", &timesr },
//{ "serif_bold", &timesrb } //{ "serif_bold", &timesrb }
}; };
#endif
bool has_font(std::string_view font) { bool has_font(std::string_view font) {
if(font == "sans" if(font == "sans"