Move out FontStyle

This commit is contained in:
Ben V. Brown
2023-06-29 18:38:50 +10:00
parent 62fb6d5209
commit da7dbd4b55
3 changed files with 25 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
#include "FontUtils.h"
constexpr uint8_t get_fontstyle_height(const FontStyle font) {
if (font == FontStyle::SMALL)
return 8;
return 16;
}
constexpr uint8_t get_fontstyle_width(const FontStyle font) {
if (font == FontStyle::SMALL)
return 6;
return 12;
}