-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Gr language specific font #8808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Greek language support (WIN1253 encoding) for InkHUD e-ink displays and OLED displays. The implementation includes new Greek font files, encoding handlers, and character mapping logic to enable proper rendering of Greek text on Heltec Mesh Pocket and similar devices.
Key Changes:
- Added three FreeSans fonts (6pt, 9pt, 12pt) with WIN1253 Greek character encoding
- Fixed critical encoding handler bug preventing 1-byte character crashes
- Implemented UTF-8 to WIN1253 character mapping for Greek alphabet
- Added OLED_GR font support with conditional compilation
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| variants/nrf52840/heltec_mesh_pocket/nicheGraphics.h | Switched font configuration from WIN1252 to WIN1253 for Greek support |
| src/graphics/niche/InkHUD/AppletFont.h | Added WINDOWS_1253 enum and Greek font includes/macros |
| src/graphics/niche/InkHUD/AppletFont.cpp | Implemented comprehensive WIN1253 encoding handler with Greek character mappings |
| src/graphics/niche/Fonts/FreeSans*_Win1253.h | Added three new Greek font files with glyph bitmaps (6pt, 9pt, 12pt) |
| src/graphics/fonts/OLEDDisplayFontsGR.h | New header declaring Greek OLED fonts with WIN1253 encoding |
| src/graphics/ScreenFonts.h | Added conditional compilation for Greek font selection |
| src/graphics/Screen.h | Implemented UTF-8 to WIN1253 character conversion logic for OLED displays |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add Greek language support (WIN1253) for InkHUD displays
Adds WIN1253 Greek fonts for InkHUD e-ink displays, enabling Greek text rendering on Heltec Mesh Pocket and other InkHUD-compatible devices.
Changes:
Add FreeSans 6pt, 9pt, 12pt fonts with Greek characters (0xC0-0xFF)
Fix WIN1253 encoding handler in AppletFont.cpp (missing 1-byte char guard caused crash)
Configure Heltec Mesh Pocket variant to use WIN1253 fonts
Testing:
Verified Greek text display (e.g., "τεστ") renders correctly on Heltec Mesh Pocket InkHUD
🤝 Attestations