MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetGlyph

Method GetGlyph

engine/Poseidon/UI/Text/FontRenderer.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116const GlyphMetrics* FontRenderer::GetGlyph(uint32_t codepoint, int pixelSize)
117{
118 GlyphKey key{codepoint, pixelSize};
119 auto it = _glyphCache.find(key);
120 if (it != _glyphCache.end())
121 return &it->second;
122 return RasterizeGlyph(codepoint, pixelSize);
123}
124
125const GlyphMetrics* FontRenderer::RasterizeGlyph(uint32_t codepoint, int pixelSize)
126{

Callers 3

MeasureTextMethod · 0.80
LayoutTextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected