Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ void W3DDisplayString::setFont( GameFont *font )
// set the font in our renderer
m_textRenderer.Set_Font( static_cast<FontCharsClass *>(m_font->fontData) );

m_textRendererHotKey.Set_Font( static_cast<FontCharsClass *>(TheFontLibrary->getFont(font->nameString,font->pointSize, TRUE)->fontData) );
if( GameFont *boldFont = TheFontLibrary->getFont( font->nameString, font->pointSize, TRUE ) )
{
m_textRendererHotKey.Set_Font( static_cast<FontCharsClass *>(boldFont->fontData) );
}
// recompute extents for text with new font
computeExtents();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ void W3DDisplayString::setFont( GameFont *font )
// set the font in our renderer
m_textRenderer.Set_Font( static_cast<FontCharsClass *>(m_font->fontData) );

m_textRendererHotKey.Set_Font( static_cast<FontCharsClass *>(TheFontLibrary->getFont(font->nameString,font->pointSize, TRUE)->fontData) );
if( GameFont *boldFont = TheFontLibrary->getFont( font->nameString, font->pointSize, TRUE ) )
{
m_textRendererHotKey.Set_Font( static_cast<FontCharsClass *>(boldFont->fontData) );
}
// recompute extents for text with new font
computeExtents();

Expand Down
Loading