diff options
Diffstat (limited to 'src/crepe/facade/Font.h')
-rw-r--r-- | src/crepe/facade/Font.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crepe/facade/Font.h b/src/crepe/facade/Font.h index b208d96..3eff3c6 100644 --- a/src/crepe/facade/Font.h +++ b/src/crepe/facade/Font.h @@ -1,10 +1,11 @@ #pragma once #include <SDL2/SDL_ttf.h> +#include <functional> #include <memory> +#include <string> #include "../Resource.h" -#include "../api/Config.h" namespace crepe { @@ -34,6 +35,8 @@ public: */ TTF_Font * get_font() const; + const std::string & get_path() const noexcept; + private: //! The SDL_ttf font object with custom deleter. std::unique_ptr<TTF_Font, std::function<void(TTF_Font *)>> font = nullptr; |