CGUIFontTTFBase* GUIFontManager::GetFontFile(const CStdString& strFileName) { for (int i = 0; i < (int)m_vecFontFiles.size(); ++i) { CGUIFontTTFBase* pFont = (CGUIFontTTFBase *)m_vecFontFiles[i]; if (pFont->GetFileName().Equals(strFileName)) return pFont; } return NULL; }
CGUIFontTTFBase* GUIFontManager::GetFontFile(const std::string& strFileName) { for (int i = 0; i < (int)m_vecFontFiles.size(); ++i) { CGUIFontTTFBase* pFont = (CGUIFontTTFBase *)m_vecFontFiles[i]; if (StringUtils::EqualsNoCase(pFont->GetFileName(), strFileName)) return pFont; } return NULL; }