| 77 | } |
| 78 | |
| 79 | std::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 |
no test coverage detected