mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add language-specific font configuration
meta.xml can now have a <font> tag, which gives the name of the font that the language needs. This will directly control the interface font when the language is active, and will soon also control the font used for each option on the language screen.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
dadb7f2623
commit
5dad6b38be
@@ -57,6 +57,8 @@ static void sync_lang_file(const std::string& langcode)
|
||||
pElem->SetText(langmeta.menu_select.c_str());
|
||||
else if (SDL_strcmp(pKey, "menu_select_tight") == 0)
|
||||
pElem->SetText(langmeta.menu_select_tight.c_str());
|
||||
else if (SDL_strcmp(pKey, "font") == 0)
|
||||
pElem->SetText(font::get_main_font_name(langmeta.font_idx));
|
||||
}
|
||||
|
||||
/* This part exists because we want to preserve blank lines between the commented
|
||||
|
||||
Reference in New Issue
Block a user