Merge pull request #5202 from stevecotton/font_reload_on_lang_change

Reload the fonts (both GUI1 and GUI2) when changing language
This commit is contained in:
Charles Dang 2020-10-11 00:10:15 +11:00 committed by GitHub
commit d2bc8e264f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -127,8 +127,6 @@ t_string family_order_script;
bool load_font_config()
{
//read font config separately, so we do not have to re-read the whole
//config when changing languages
config cfg;
try {
const std::string& cfg_path = filesystem::get_wml_location("hardwired/fonts.cfg");

View file

@ -385,6 +385,7 @@ void title_screen::pre_show(window& win)
t_string::reset_translations();
::image::flush_cache();
sound::flush_cache();
font::load_font_config();
on_resize(win);
}
} catch(const std::runtime_error& e) {