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 @@
#pragma once
#include <stdint.h>
enum class FontStyle {
SMALL,
LARGE,
EXTRAS,
FROM_TEXT, // Magically pick from the text
FROM_HEIGHT, // Pick font to best fill the height
};
constexpr uint8_t get_fontstyle_height(const FontStyle font);
constexpr uint8_t get_fontstyle_width(const FontStyle font);