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

Method availableSizes

lib/EpdFont/SdCardFontRegistry.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::vector<uint8_t> SdCardFontFamilyInfo::availableSizes() const {
80 std::vector<uint8_t> sizes;
81 for (const auto& f : files) {
82 bool found = false;
83 for (uint8_t s : sizes) {
84 if (s == f.pointSize) {
85 found = true;
86 break;
87 }
88 }
89 if (!found) sizes.push_back(f.pointSize);
90 }
91 std::sort(sizes.begin(), sizes.end());
92 return sizes;
93}
94
95// --- SdCardFontRegistry ---
96

Callers 1

handleFontListMethod · 0.80

Calls 3

push_backMethod · 0.80
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected