Add fallback strings, so we can fall back on translit text if

we're missing characters (eg. someone distributing a song
using kanji that not all people have) instead of showing the
default glyph
This commit is contained in:
Glenn Maynard
2003-02-12 19:34:53 +00:00
parent f4bfdda745
commit caee0fc111
2 changed files with 21 additions and 7 deletions
+3 -2
View File
@@ -26,7 +26,7 @@ public:
bool LoadFromFont( CString sFontName );
bool LoadFromNumbers( CString sTexturePath ) { return LoadFromTextureAndChars(sTexturePath,"0123456789%. :x"); };
bool LoadFromTextureAndChars( CString sTexturePath, CString sChars );
void SetText( CString sText );
void SetText( CString sText, CString sAlternateText = "" );
int GetWidestLineWidthInSourcePixels() { return m_iWidestLineWidth; };
void CropToWidth( int iWidthInSourcePixels );
@@ -39,8 +39,9 @@ public:
void SetHorizAlign( HorizAlign ha );
void SetVertAlign( VertAlign va );
CString GetText() const { return m_szText; }
public:
CString m_sFontFilePath;
Font* m_pFont;
protected: