mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	automatically change the font to one that supports ZH if ZH language is enabled
This commit is contained in:
		| @@ -1478,7 +1478,9 @@ EX int SDL_Init1(Uint32 flags) { | |||||||
| #endif | #endif | ||||||
|  |  | ||||||
| EX void set_cfont() { | 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() { | EX void init_font() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue