Add vscript created font support on vgui_text_display

This commit is contained in:
samisalreadytaken 2022-12-04 13:40:41 +03:00
parent 9e47b5a217
commit 4a77eb2a0d

View File

@ -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 );
}