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>
|
#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", ×r },
|
{ "serif", ×r },
|
||||||
//{ "serif_bold", ×rb }
|
//{ "serif_bold", ×rb }
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
bool has_font(std::string_view font) {
|
bool has_font(std::string_view font) {
|
||||||
if(font == "sans"
|
if(font == "sans"
|
||||||
|
|
Ładowanie…
Reference in New Issue