mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-15 22:12:32 +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')
|
if (pszFontName && pszFontName[0] != '\0')
|
||||||
{
|
{
|
||||||
HFont font = scheme()->GetIScheme( GetScheme() )->GetFont( pszFontName );
|
HFont font = scheme()->GetIScheme( GetScheme() )->GetFont( pszFontName );
|
||||||
|
|
||||||
|
if ( !font )
|
||||||
|
{
|
||||||
|
extern HFont GetScriptFont( const char *, bool );
|
||||||
|
font = GetScriptFont( pszFontName, false );
|
||||||
|
}
|
||||||
|
|
||||||
m_pDisplayTextLabel->SetFont( font );
|
m_pDisplayTextLabel->SetFont( font );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user