make a Font charmap for numbers fonts
This commit is contained in:
@@ -88,13 +88,6 @@ bool BitmapText::LoadFromFont( CString sFontFilePath )
|
||||
{
|
||||
CHECKPOINT_M( ssprintf("BitmapText::LoadFromFont(%s)", sFontFilePath.c_str()) );
|
||||
|
||||
// if we're called with a non-ini file, then we're trying to load a 5x3 numbers graphic
|
||||
bool bIsNumbers = GetExtension(sFontFilePath).CompareNoCase("ini")!=0;
|
||||
if( bIsNumbers )
|
||||
{
|
||||
return LoadFromTextureAndChars( sFontFilePath, "0123456789%. :x" );
|
||||
}
|
||||
|
||||
if( m_pFont ) {
|
||||
FONT->UnloadFont( m_pFont );
|
||||
m_pFont = NULL;
|
||||
@@ -117,7 +110,6 @@ bool BitmapText::LoadFromTextureAndChars( CString sTexturePath, CString sChars )
|
||||
m_pFont = NULL;
|
||||
}
|
||||
|
||||
// load font
|
||||
m_pFont = FONT->LoadFont( sTexturePath, sChars );
|
||||
|
||||
BuildChars();
|
||||
|
||||
Reference in New Issue
Block a user