| 317 | } |
| 318 | |
| 319 | fResult ResFont::HGEFont::QueryGlyph(f2dGraphics* pGraph, fCharW Character, f2dGlyphInfo* InfoOut) |
| 320 | { |
| 321 | unordered_map<wchar_t, f2dGlyphInfo>::iterator i = m_Charset.find(Character); |
| 322 | |
| 323 | if (i == m_Charset.end()) |
| 324 | return FCYERR_OBJNOTEXSIT; |
| 325 | |
| 326 | *InfoOut = i->second; |
| 327 | |
| 328 | return FCYERR_OK; |
| 329 | } |
| 330 | |
| 331 | ResFont::ResFont(const char* name, fcyRefPointer<f2dFontProvider> pFont) |
| 332 | : Resource(ResourceType::SpriteFont, name), m_pFontProvider(pFont) |
no test coverage detected