mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Move out FontStyle
This commit is contained in:
12
source/Core/Src/FontUtils.cpp
Normal file
12
source/Core/Src/FontUtils.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user