aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
commit24578c9afb61ae65b300dd7fb645220e133089be (patch)
treec6451ea01a56f0bde33a803ea37169f59d0fc41d /src/crepe/facade/SDLContext.h
parentbcaee968761c1d2e85c20925b237480c87da9747 (diff)
parent707db8c94b6bb3921105f40658aab13511d8df07 (diff)
Merge branch 'wouter/text-component' into niels/UI
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index 3f9f9ee..fcf3559 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -17,6 +17,7 @@
#include "api/Transform.h"
#include "types.h"
+#include "FontFacade.h"
namespace crepe {
class Texture;
@@ -243,6 +244,20 @@ private:
* - this is defined in this class because get_events() needs this information aswell
*/
CameraAuxiliaryData cam_aux_data;
+private:
+ //! instance of the font_facade
+ FontFacade font_facade{};
+public:
+ /**
+ * \brief Function to Get asset from font_family
+ *
+ * This function uses the FontFacade function to convert a font_family to an asset.
+ *
+ * \param font_family name of the font style that needs to be used (will return an asset with default font path of the font_family doesnt exist)
+ *
+ * \return asset with the font style absolute path
+ */
+ Asset get_font_from_name(const std::string& font_family);
};
} // namespace crepe