[FontManager] ReloadFonts() was only used in ScreenTestFonts, which is gone now.
This commit is contained in:
@@ -29,15 +29,6 @@ FontManager::~FontManager()
|
||||
}
|
||||
}
|
||||
|
||||
void FontManager::ReloadFonts()
|
||||
{
|
||||
for(map<FontName, Font*>::iterator i = g_mapPathToFont.begin();
|
||||
i != g_mapPathToFont.end(); ++i)
|
||||
{
|
||||
i->second->Reload();
|
||||
}
|
||||
}
|
||||
|
||||
Font* FontManager::LoadFont( const RString &sFontOrTextureFilePath, RString sChars )
|
||||
{
|
||||
Font *pFont;
|
||||
|
||||
@@ -16,13 +16,6 @@ public:
|
||||
Font *CopyFont( Font *pFont );
|
||||
void UnloadFont( Font *fp );
|
||||
//void PruneFonts();
|
||||
|
||||
/* Warning: This reloads fonts completely, so all BitmapTexts need to be
|
||||
* reset, too. If this isn't done, best case they end up with old font
|
||||
* metrics; worst case, they get left with stale pointers to RageTextures
|
||||
* that'll get freed eventually and crash. This is only used for realtime
|
||||
* adjustment of fonts in ScreenTestFonts at the moment. */
|
||||
void ReloadFonts();
|
||||
};
|
||||
|
||||
extern FontManager* FONT; // global and accessable from anywhere in our program
|
||||
|
||||
Reference in New Issue
Block a user