Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Jan 10, 2025
1 parent 2ca2552 commit f800e6b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/client/fontengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ gui::IGUIFont *FontEngine::initFont(const FontSpec &spec)
else
path_setting = setting_prefix + "font_path" + setting_suffix;

std::string fallback_settings[] = {
g_settings->get(path_setting),
Settings::getLayer(SL_DEFAULTS)->get(path_setting)
};

std::string media_name = spec.mode == FM_Mono
? "mono" + setting_suffix
: (setting_suffix.empty() ? "" : setting_suffix.substr(1));
Expand Down Expand Up @@ -291,6 +286,10 @@ gui::IGUIFont *FontEngine::initFont(const FontSpec &spec)
"'. Falling back to client settings." << std::endl;
}

std::string fallback_settings[] = {
g_settings->get(path_setting),
Settings::getLayer(SL_DEFAULTS)->get(path_setting)
};
for (const std::string &font_path : fallback_settings) {
infostream << "Creating new font: " << font_path.c_str()
<< " " << size << "pt" << std::endl;
Expand Down

0 comments on commit f800e6b

Please sign in to comment.