vgui2/src/Scheme.cpp
HFont CScheme::FindFontInAliasList( const char *pFontName )
{
	// FIXME: Slow!!!
	for (int i = m_FontAliases.Count(); --i >= 0; )
	{
		// exposed out for debugging ease
		const char *pAliasName = m_FontAliases[i]._fontName.String();
		if ( !strnicmp( pFontName, pAliasName, FONT_ALIAS_NAME_LENGTH ) )
		{
			return m_FontAliases[i]._font;
		}
	}

	// No dice
	return 0;
}
//-----------------------------------------------------------------------------
// Finds a font in the alias list
//-----------------------------------------------------------------------------
Finds a font in the alias list
Finds a font in the alias list
HFont CScheme::FindFontInAliasList( const char *pFontName )
{
	for (int i = m_FontAliases.Count(); --i >= 0; )
	{
		const char *pAliasName = m_FontAliases[i]._fontName.String();
		if ( !strnicmp( pFontName, pAliasName, FONT_ALIAS_NAME_LENGTH ) )
		{
			return m_FontAliases[i]._font;
		}
	}
	return 0;
}
HFont CScheme :: FindFontInAliasList ( const char * pFontName ) { for ( int i = m_FontAliases . Count ( ) ; -- i >= 0 ; ) { const char * pAliasName = m_FontAliases [ i ] . _fontName . String ( ) ; if ( ! strnicmp ( pFontName , pAliasName , FONT_ALIAS_NAME_LENGTH ) ) { return m_FontAliases [ i ] . _font ; } } return 0 ; }
Finds a font in the alias list
Finds a font in the alias list
// FIXME: Slow!!! // exposed out for debugging ease // No dice