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

Method load

Source/Cache/FontCache.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187Font* FontCache::load(String fontStr) {
188 std::string fontName;
189 int fontSize = 0;
190 bool sdf = false;
191 std::tie(fontName, fontSize, sdf) = getArgsFromStr(fontStr);
192 if (fontName.empty()) return nullptr;
193 return load(fontName, fontSize, sdf);
194}
195
196Font* FontCache::load(String fontName, uint32_t fontSize, bool sdf) {
197 auto name = Path::getName(fontName);

Callers

nothing calls this directly

Calls 9

createFontByPixelSizeMethod · 0.80
loadFunction · 0.70
findMethod · 0.65
getNameFunction · 0.50
formatFunction · 0.50
createFunction · 0.50
emptyMethod · 0.45
endMethod · 0.45
getHandleMethod · 0.45

Tested by

no test coverage detected