MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / unloadAll

Method unloadAll

lib/EpdFont/SdCardFontManager.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void SdCardFontManager::unloadAll(GfxRenderer& renderer) {
81 renderer.clearSdCardFonts();
82 for (auto& lf : loaded_) {
83 renderer.removeFont(lf.fontId);
84 delete lf.font;
85 }
86 loaded_.clear();
87 loadedFamilyName_.clear();
88 loadedPointSize_ = 0;
89}
90
91int SdCardFontManager::getFontId(const std::string& familyName) const {
92 if (familyName != loadedFamilyName_ || loaded_.empty()) return 0;

Callers 1

ensureLoadedMethod · 0.80

Calls 3

clearSdCardFontsMethod · 0.80
removeFontMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected