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

Method findFamily

lib/EpdFont/SdCardFontRegistry.cpp:272–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272const SdCardFontFamilyInfo* SdCardFontRegistry::findFamily(const std::string& name) const {
273 for (const auto& f : families_) {
274 if (f.name == name) return &f;
275 }
276 return nullptr;
277}
278
279int SdCardFontRegistry::getFamilyIndex(const std::string& name) const {
280 for (int i = 0; i < static_cast<int>(families_.size()); i++) {

Callers 3

beginMethod · 0.80
ensureLoadedMethod · 0.80
isFamilyInstalledMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected