1) Enabled translations by default.
2) Switched fonts so that the new DomesticMannerLatin1 font is used both for menu and race gui. In the menu the new PrintBold function is used to make the font better visible. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1828 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
8909c02cda
commit
4bf28fa566
@ -20,7 +20,7 @@ dnl If these were not set, the AC_PROG_CC and AC_PROG_CXX
|
||||
dnl scripts set them to "-g -O2".
|
||||
dnl =====================================================
|
||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||
CXXFLAGS="$CXXFLAGS -Wall"
|
||||
CXXFLAGS="$CXXFLAGS -Wall -DHAS_GETTEXT"
|
||||
|
||||
dnl ===================
|
||||
dnl Check for compilers
|
||||
|
@ -26,8 +26,8 @@ Font* font_race;
|
||||
|
||||
int init_fonts()
|
||||
{
|
||||
font_gui = new Font("AvantGarde-Demi.txf");
|
||||
font_race = new Font("DomesticManners.txf");
|
||||
font_gui = new Font("DomesticMannersLatin1.txf");
|
||||
font_race = new Font("DomesticMannersLatin1.txf");
|
||||
return ( font_gui && font_race );
|
||||
} // init_fonts
|
||||
|
||||
|
@ -788,7 +788,8 @@ void Widget::draw()
|
||||
if( draw )
|
||||
{
|
||||
glScalef(m_text_scale, m_text_scale, 1.0f);
|
||||
m_font->Print(m_text.substr(line_start, line_end - line_start).c_str(), m_text_size,
|
||||
m_font->PrintBold(m_text.substr(line_start, line_end - line_start).c_str(),
|
||||
m_text_size,
|
||||
x_pos, y_pos - m_text_size / 2,
|
||||
m_text_color, 1.0f, 1.0f);
|
||||
glScalef(1.0f/m_text_scale, 1.0f/m_text_scale, 1.0f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user