MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / createCharacter

Method createCharacter

Source/Cache/FontCache.cpp:294–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294Sprite* FontCache::createCharacter(Font* font, bgfx::CodePoint character) {
295 Texture2D* texture;
296 Rect rect;
297 std::tie(texture, rect) = getCharacterInfo(font, character);
298 Sprite* sprite = Sprite::create(texture, rect);
299 return sprite;
300}
301
302std::tuple<Texture2D*, Rect> FontCache::getCharacterInfo(Font* font, bgfx::CodePoint character) {
303 const bgfx::GlyphInfo* glyphInfo = SharedFontManager.getGlyphInfo(font->getHandle(), character);

Callers 1

updateCharactersMethod · 0.80

Calls 1

createFunction · 0.50

Tested by

no test coverage detected