19 bool at(
int idx)
const {
24 bool at(
int x,
int y)
const {
39 const uint8_t* m_data;
42static constexpr const uint8_t
font[][9] = {
3123 auto us = (
const uint8_t*)utf8;
3124 const int len = strlen(utf8);
3127 }
else if (len == 1 || us[0] < 128) {
3131 switch (us[1] << 8 | us[0]) {
void checkRange(int value, int min, int max, const char *tag, unsigned stackTraceDepth=10)
Definition: Error.hpp:45
Definition: DisplayFont.hpp:13
Character(const uint8_t *data)
Definition: DisplayFont.hpp:15
bool operator()(int x, int y) const
Definition: DisplayFont.hpp:30
bool at(int idx) const
Definition: DisplayFont.hpp:19
bool at(int x, int y) const
Definition: DisplayFont.hpp:24
bool operator[](int index) const
Definition: DisplayFont.hpp:34
Definition: DisplayFont.hpp:7
static constexpr const size_t DIMENSIONS_Y
Definition: DisplayFont.hpp:10
static char utf8toCp(const char *utf8)
Definition: DisplayFont.hpp:3122
static Character get(char c)
Definition: DisplayFont.hpp:3117
static constexpr const size_t DATA_BITS
Definition: DisplayFont.hpp:11
static constexpr const uint8_t font[][9]
Definition: DisplayFont.hpp:42
static constexpr const size_t DIMENSIONS_X
Definition: DisplayFont.hpp:9