Skip to content

Commit e75f8be

Browse files
committed
Fix up TTF super and sub scripts
1 parent d2e9b06 commit e75f8be

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/Displays/DisplaySystem.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,18 @@ class DisplaySystem : public RendererDisplay {
283283
#endif
284284
};
285285

286+
inline void setSupSubFontSize(FontHandle font) override {
287+
#if CONFIG_TINYFONT_TTF
288+
reinterpret_cast<Font *>(font.ptr)->setSupSubFontSize();
289+
#endif
290+
}
291+
292+
inline void setNormalFontSize(FontHandle font) override {
293+
#if CONFIG_TINYFONT_TTF
294+
reinterpret_cast<Font *>(font.ptr)->setNormalFontSize();
295+
#endif
296+
}
297+
286298
inline auto drawSingleLineOfText(const char *cstr, int16_t x, int16_t y, bool invert,
287299
FontHandle font) -> int16_t override {
288300
if (!font.ptr || !cstr) {

0 commit comments

Comments
 (0)