Central/Eastern European (CE) national character support for embedded displays#1965
Open
stachuman wants to merge 2 commits intomeshcore-dev:mainfrom
Open
Central/Eastern European (CE) national character support for embedded displays#1965stachuman wants to merge 2 commits intomeshcore-dev:mainfrom
stachuman wants to merge 2 commits intomeshcore-dev:mainfrom
Conversation
added 2 commits
March 7, 2026 18:47
- SSD1306Display (OLED 128x64, e.g. Heltec V3/V4) - SH1106Display (OLED 128x64, e.g. Heltec V2) - ST7735Display (TFT, e.g. Heltec T114) - ST7789LCDDisplay (TFT, e.g. Heltec V4 TFT, T-Beam) - E213Display (E-ink 2.13", e.g. Wireless Paper, Vision Master) - E290Display (E-ink 2.9", e.g. Vision Master E290) Not covered (different font systems): - ST7789Display (OLEDDisplay/ArialMT — use per-locale LOCALE_XX with generate_font_glyphs.py) - GxEPDDisplay (GxEPD2/FreeSans proportional font) - LGFXDisplay (LovyanGFX) Locales supported for Poland, Czech Republic, Slovakia, Hungary, Romania, Croatia, Slovenia, Bosnia/Serbia/Montenegro, Turkey, Lithuania, Latvia, Estonia, German Tested with Heltec V4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Central/Eastern European (CE) national character support for embedded displays using the Adafruit GFX 5x7 bitmap font.
Characters like Ą, Č, Ž, ß are rendered natively instead of being replaced with block characters.
What changed
Covered displays
Supported languages
Polish, Czech, Slovak, Hungarian, Romanian, Croatian, Serbian (Latin), Slovenian, Bosnian, Turkish, Lithuanian, Latvian, Estonian, German (ß), and other languages using Latin-1 accented characters (French, Spanish, Portuguese, Italian, etc.)
How to use
Add -DLOCALE_CE to your build flags:
In your variant's platformio.ini:
build_flags =
${some_base.build_flags}
-DLOCALE_CE
Or pass it via environment variable:
PLATFORMIO_BUILD_FLAGS="-DLOCALE_CE" pio run -e your_target
When LOCALE_CE is not defined, behavior is completely unchanged — the original CP437 font loads as before.
How it works
The custom locale_font.h defines the FONT5X7_H header guard before Adafruit GFX's glcdfont.c is included, causing the original font to be skipped. The replacement font keeps ASCII (0x00-0x7F) identical to CP437 and places national characters in the 0x80+ slots. No display driver rendering code is changed — only the font data and UTF-8 translation function.