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:
commit
d2bc8e264f
2 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue