#include "monoformat_fontreader.hpp" namespace monoformat { #include "u8g2_font_NokiaSmallPlain_tf.inc.cpp" #include "u8g2_font_5x7_mf.inc.cpp" std::span findEmbeddedFont(std::size_t fontIndex) { if (fontIndex == 0) { return std::as_bytes(std::span{u8g2_font_NokiaSmallPlain_tf_u8g2font, u8g2_font_NokiaSmallPlain_tf_u8g2font_len}); } else if (fontIndex == 1) { return std::as_bytes(std::span{u8g2_font_5x7_mf_u8g2font, u8g2_font_5x7_mf_u8g2font_len}); } else { return {}; } } } // namespace monoformat