meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.98k stars 714 forks source link

[Feature Request]: UA Font for Eink #2853

Closed assada closed 3 months ago

assada commented 9 months ago

Platform

NRF52

Description

Hi! Made a font for t-echo EInk. Now it is not very convenient to use it due to the replacement of /firmware/.pio/libdeps/t-echo/ESP8266 and ESP32 OLED driver for SSD1306 displays/src/OLEDDisplayFonts.cpp

I suggest adding a new font file EInkDisplayFontsUA.cpp with const uint8_t ArialMT_Plain_16_UA[]. Also to https://github.com/meshtastic/firmware/blob/master/src/graphics/Screen.cpp#L109 add smth like

#ifdef EINK_UA
#define FONT_SMALL ArialMT_Plain_16_UA // Height: 19
#else
#define FONT_SMALL ArialMT_Plain_16 // Height: 19
#endif

ArialMT_Plain_16_UA: https://gist.github.com/assada/8ab477d67653690842c2328faeb19a88

Screenshot: image

garthvh commented 9 months ago

Arial is proprietary, so we probably can’t use it, would need a compatible license.

assada commented 9 months ago

But it is already in use (ArialMT_Plain_10_UA and ArialMT_Plain_10_RU)

Burnwald commented 7 months ago

https://github.com/olikraus/u8g2/wiki/fntgrpunifont