diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 09:09:32 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-17 09:09:32 +0100 |
commit | bfc07676707eae2c0161c6b86ccdd1583d96f71b (patch) | |
tree | b18bd17b0d07b3b51b2461462e3380d36905e61f /src/crepe/facade/FontFacade.cpp | |
parent | 2f8d36a33854715828d412792663f355b9e393ae (diff) | |
parent | d63eb7302d05fbe9b4c044ece3444e8ac4e56e02 (diff) |
Merge branch 'wouter/text-component' into niels/UI
Diffstat (limited to 'src/crepe/facade/FontFacade.cpp')
-rw-r--r-- | src/crepe/facade/FontFacade.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crepe/facade/FontFacade.cpp b/src/crepe/facade/FontFacade.cpp index 708b2ff..aa9d00c 100644 --- a/src/crepe/facade/FontFacade.cpp +++ b/src/crepe/facade/FontFacade.cpp @@ -1,4 +1,3 @@ -#include <SDL2/SDL_ttf.h> #include <fontconfig/fontconfig.h> #include <stdexcept> @@ -43,7 +42,7 @@ Asset FontFacade::get_font_asset(const string font_family) { } // Convert the file path to a string - string font_file_path(reinterpret_cast<const char *>(file_path)); + string font_file_path = reinterpret_cast<const char *>(file_path); FcPatternDestroy(matched_pattern); FcFini(); return Asset(font_file_path); |