diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index 233a97dd22..7d2f23c553 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -134,6 +134,8 @@ bool BitmapText::LoadFromFont( const RString& sFontFilePath ) m_pFont = FONT->LoadFont( sFontFilePath ); + this->SetStrokeColor( m_pFont->GetDefaultStrokeColor() ); + BuildChars(); return true; diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 9090808b3e..bb8c71f9c8 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -229,6 +229,7 @@ Font::Font() m_pDefault = NULL; m_bRightToLeft = false; m_fFontBaseZoom = 1; + m_DefaultStrokeColor = RageColor(1,1,1,1); } Font::~Font() @@ -691,6 +692,9 @@ void Font::Load( const RString &sIniPath, RString sChars ) ini.GetValue( "main", "CapitalsOnly", bCapitalsOnly ); ini.GetValue( "main", "RightToLeft", m_bRightToLeft ); ini.GetValue( "main", "FontBaseZoom", m_fFontBaseZoom ); + RString s; + if( ini.GetValue( "main", "DefaultStrokeColor", s ) ) + m_DefaultStrokeColor.FromString( s ); } { diff --git a/stepmania/src/Font.h b/stepmania/src/Font.h index 95c61225f9..3048e620c3 100644 --- a/stepmania/src/Font.h +++ b/stepmania/src/Font.h @@ -148,6 +148,7 @@ public: bool IsRightToLeft() const { return m_bRightToLeft; }; float GetFontBaseZoom() const { return m_fFontBaseZoom; }; + const RageColor &GetDefaultStrokeColor() const { return m_DefaultStrokeColor; }; private: /* List of pages and fonts that we use (and are responsible for freeing). */ @@ -167,6 +168,7 @@ private: bool m_bRightToLeft; float m_fFontBaseZoom; + RageColor m_DefaultStrokeColor; /* We keep this around only for reloading. */ RString m_sChars;