| 133 | } |
| 134 | |
| 135 | CGameFont* CFontManager::InitializeCustomFont(LPCSTR section, u32 flags) |
| 136 | { |
| 137 | for (auto& font : m_all_fonts) |
| 138 | { |
| 139 | if (strstr(font->m_font_name.c_str(), section)) |
| 140 | return font; |
| 141 | } |
| 142 | |
| 143 | CGameFont* pFontAdd = NULL; |
| 144 | InitializeFont(pFontAdd, section, flags); |
| 145 | pFontAdd->m_bCustom = true; |
| 146 | return pFontAdd; |
| 147 | } |
| 148 | |
| 149 | CFontManager::~CFontManager() |
| 150 | { |
no test coverage detected