add FontStyle 'bold' and 'italic' properties to 2D text

This commit is contained in:
MihailRis
2024-12-04 17:08:04 +03:00
parent 28f49ac948
commit b15725913e
4 changed files with 76 additions and 25 deletions
+4 -4
View File
@@ -11,10 +11,10 @@ class Batch2D;
class Batch3D;
class Camera;
enum class FontStyle {
none,
shadow,
outline
struct FontStyle {
bool bold = false;
bool italic = false;
glm::vec4 color {1, 1, 1, 1};
};
class Font {