mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +03:00
Add vscript created font support on vgui_text_display
This commit is contained in:
parent
9e47b5a217
commit
4a77eb2a0d
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user