kopia lustrzana https://github.com/pimoroni/pimoroni-pico
MicroPython: Don't include Hershey font map.
rodzic
07bc005958
commit
761e8b5c3c
|
@ -3,6 +3,7 @@
|
|||
#include <cmath>
|
||||
|
||||
namespace hershey {
|
||||
#ifndef MICROPY_BUILD_TYPE
|
||||
std::map<std::string, const font_t*> 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"
|
||||
|
|
Ładowanie…
Reference in New Issue