Add drawCenteredText to GfxRenderer

This commit is contained in:
Dave Allie
2025-12-08 22:52:19 +11:00
parent 07cc589e59
commit 02b157c02b
7 changed files with 19 additions and 21 deletions

View File

@@ -40,6 +40,7 @@ class GfxRenderer {
// Text
int getTextWidth(int fontId, const char* text, EpdFontStyle style = REGULAR) const;
void drawCenteredText(int fontId, int y, const char* text, bool black = true, EpdFontStyle style = REGULAR) const;
void drawText(int fontId, int x, int y, const char* text, bool black = true, EpdFontStyle style = REGULAR) const;
void setFontRenderMode(const FontRenderMode mode) { this->fontRenderMode = mode; }
int getSpaceWidth(int fontId) const;