diff --git a/src/resources/Font.cpp b/src/resources/Font.cpp index 08a9487f2..f4e671980 100644 --- a/src/resources/Font.cpp +++ b/src/resources/Font.cpp @@ -109,7 +109,7 @@ std::shared_ptr Font::get(int size, const std::string& path) return foundFont->second.lock(); } - std::shared_ptr font = std::shared_ptr(new Font(size, path)); + std::shared_ptr font = std::shared_ptr(new Font(def.second, def.first)); sFontMap[def] = std::weak_ptr(font); ResourceManager::getInstance()->addReloadable(font); return font; @@ -138,7 +138,7 @@ void Font::buildAtlas(ResourceData data) { if(FT_New_Memory_Face(sLibrary, data.ptr.get(), data.length, 0, &face)) { - LOG(LogError) << "Error creating font face!"; + LOG(LogError) << "Error creating font face! (mPath: " << mPath << ", data.length: " << data.length << ")"; return; }