fix: font load fail

This commit is contained in:
2026-04-16 13:13:05 +08:00
parent 42b5661a28
commit 6362536daa

View File

@@ -10,7 +10,7 @@ Font::Font() {
if (FT_Init_FreeType(&m_ft)) { if (FT_Init_FreeType(&m_ft)) {
Logger::error("FREETYPE: Could not init FreeType Library"); Logger::error("FREETYPE: Could not init FreeType Library");
} }
if (FT_New_Face(m_ft, "assets/fonts/IBMPlexSans-Regular.ttf", 0, &m_face)) { if (FT_New_Face(m_ft, ASSETS_PATH "fonts/IBMPlexSans-Regular.ttf", 0, &m_face)) {
Logger::error("FREETYPE: Failed to load font"); Logger::error("FREETYPE: Failed to load font");
} }