From 7dcb763d839f2a077a6ee7e73be8b3740febceec Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sun, 24 May 2026 16:55:50 +0200 Subject: [PATCH] fix(eink): align unknown-glyph fallback box to top of cell The placeholder rectangle for codepoints outside U+0020-U+04FF was drawn 1 scale unit too low (y-7*sc instead of y-8*sc relative to the GFX baseline), causing it to sit below full-height glyphs. Co-Authored-By: Claude Sonnet 4.6 --- src/helpers/ui/GxEPDDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ui/GxEPDDisplay.cpp b/src/helpers/ui/GxEPDDisplay.cpp index 2c88958c..3996f421 100644 --- a/src/helpers/ui/GxEPDDisplay.cpp +++ b/src/helpers/ui/GxEPDDisplay.cpp @@ -74,7 +74,7 @@ int16_t GxEPDDisplay::drawLemonChar(int16_t x, int16_t y, uint32_t cp) { } } if (cp < Lemon.first || cp > Lemon.last) { - if (cp >= 0x20) display.fillRect(x + sc, y - 7*sc, 4*sc, 6*sc, _curr_color); + if (cp >= 0x20) display.fillRect(x + sc, y - 8*sc, 4*sc, 6*sc, _curr_color); return x + 6 * sc; } const GFXglyph* g = &lemonGlyphs[cp - Lemon.first];