Skip to content

Commit

Permalink
Merge pull request #1865 from Lymia/master
Browse files Browse the repository at this point in the history
Fix font loading from mods on Linux
  • Loading branch information
Robosturm authored Jan 19, 2025
2 parents 9e46f03 + a29ff11 commit e1c0018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource_management/fontmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ FontManager::FontManager()
setObjectName("FontManager");
QStringList searchFolders;
searchFolders.append(QString(oxygine::Resource::RCC_PREFIX_PATH) + "resources/fonts/");
searchFolders.append("resources/fonts/");
searchFolders.append(Settings::getInstance()->getUserPath() + "resources/fonts/");
QStringList mods = Settings::getInstance()->getMods();
for (const auto & mod : std::as_const(mods))
{
searchFolders.append(mod + "/fonts/");
searchFolders.append(Settings::getInstance()->getUserPath() + mod + "/fonts/");
}
for (qint32 i = 0; i < searchFolders.size(); ++i)
{
Expand Down

0 comments on commit e1c0018

Please sign in to comment.