mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-23 20:30:38 +02:00
14 lines
402 B
C++
14 lines
402 B
C++
#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;
|
|
}
|
|
|
|
constexpr FontStyle get_fontstyle_fromHeight(const uint8_t height) { return (height <= 8) ? FontStyle::SMALL : FontStyle::LARGE; } |