mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 17:30:05 +00:00 
			
		
		
		
	Use a vector to store bundled font names to preserve initialization order
This commit is contained in:
		
							parent
							
								
									3202476267
								
							
						
					
					
						commit
						7edd512ff7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -34,7 +34,7 @@ static void LoadFcApplicationFont(const std::string& fontFilename); | ||||||
| static void LoadFonts(); | static void LoadFonts(); | ||||||
| static void LoadTextures(); | static void LoadTextures(); | ||||||
| 
 | 
 | ||||||
| static const std::unordered_map<types::Font, std::string> fontNames_ { | static const std::vector<std::pair<types::Font, std::string>> fontNames_ { | ||||||
|    {types::Font::din1451alt, ":/res/fonts/din1451alt.ttf"}, |    {types::Font::din1451alt, ":/res/fonts/din1451alt.ttf"}, | ||||||
|    {types::Font::din1451alt_g, ":/res/fonts/din1451alt_g.ttf"}, |    {types::Font::din1451alt_g, ":/res/fonts/din1451alt_g.ttf"}, | ||||||
|    {types::Font::Inconsolata_Regular, ":/res/fonts/Inconsolata-Regular.ttf"}}; |    {types::Font::Inconsolata_Regular, ":/res/fonts/Inconsolata-Regular.ttf"}}; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat