MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / QueryGlyph

Method QueryGlyph

LuaSTGPlus/ResourceMgr.cpp:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319fResult 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
331ResFont::ResFont(const char* name, fcyRefPointer<f2dFontProvider> pFont)
332 : Resource(ResourceType::SpriteFont, name), m_pFontProvider(pFont)

Callers 2

RenderTextMethod · 0.80
CalcuTextSizeMethod · 0.80

Calls 1

findMethod · 0.80

Tested by

no test coverage detected