mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-11 20:11:33 +03:00
Add vscript created font support on vgui_text_display
This commit is contained in:
@@ -215,6 +215,13 @@ void C_TextDisplayPanel::UpdateText()
|
||||
if (pszFontName && pszFontName[0] != '\0')
|
||||
{
|
||||
HFont font = scheme()->GetIScheme( GetScheme() )->GetFont( pszFontName );
|
||||
|
||||
if ( !font )
|
||||
{
|
||||
extern HFont GetScriptFont( const char *, bool );
|
||||
font = GetScriptFont( pszFontName, false );
|
||||
}
|
||||
|
||||
m_pDisplayTextLabel->SetFont( font );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user