| 1252 | // --- Public accessors --- |
| 1253 | |
| 1254 | EpdFont* SdCardFont::getEpdFont(uint8_t style) { |
| 1255 | style &= (MAX_STYLES - 1); |
| 1256 | if (!styles_[style].present) return nullptr; |
| 1257 | return &styles_[style].epdFont; |
| 1258 | } |
| 1259 | |
| 1260 | bool SdCardFont::hasStyle(uint8_t style) const { return styles_[style & (MAX_STYLES - 1)].present; } |
| 1261 |