aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/Font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/facade/Font.cpp')
-rw-r--r--src/crepe/facade/Font.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/crepe/facade/Font.cpp b/src/crepe/facade/Font.cpp
index 558641f..51e9690 100644
--- a/src/crepe/facade/Font.cpp
+++ b/src/crepe/facade/Font.cpp
@@ -2,6 +2,9 @@
#include "../api/Asset.h"
#include "../api/Config.h"
+#include "util/Log.h"
+#include <iostream>
+#include <string>
#include "Font.h"
@@ -12,6 +15,11 @@ Font::Font(const Asset & src, Mediator & mediator)
: Resource(src, mediator){
Config & config = Config::get_instance();
const std::string FONT_PATH = src.get_path();
+
+ this->path = FONT_PATH;
+
+ cout << this->path << endl;
+ /*
TTF_Font * loaded_font = TTF_OpenFont(FONT_PATH.c_str(), config.font.size);
if (loaded_font == NULL) {
throw runtime_error(format("Font: {} (path: {})", TTF_GetError(), FONT_PATH));
@@ -20,3 +28,7 @@ Font::Font(const Asset & src, Mediator & mediator)
}
TTF_Font * Font::get_font() const { return this->font.get(); }
+
+const string & Font::get_path() const noexcept{
+ return this->path;
+}