make a Font charmap for numbers fonts

This commit is contained in:
Chris Danford
2004-05-31 00:11:34 +00:00
parent 3cadf4c5d5
commit 93e274b3ac
3 changed files with 151 additions and 145 deletions
-8
View File
@@ -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();