mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
automatically change the font to one that supports ZH if ZH language is enabled
This commit is contained in:
parent
f0146d2308
commit
aff2fc406d
@ -1478,7 +1478,9 @@ EX int SDL_Init1(Uint32 flags) {
|
||||
#endif
|
||||
|
||||
EX void set_cfont() {
|
||||
cfont = font_by_name(font_filenames[last_font_id = font_id]);
|
||||
int f = font_id;
|
||||
if(lang() == 8 && among(f, 0, 1, 2)) f = 3;
|
||||
cfont = font_by_name(font_filenames[last_font_id = f]);
|
||||
}
|
||||
|
||||
EX void init_font() {
|
||||
|
Loading…
Reference in New Issue
Block a user