mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
Support for Polish fonts on E-Ink devices, Polish fonts retouch, fixed Czech/Slovak OLED/E-Ink double space bug (#5821)
* Added support for Polish fonts for E-Ink devices * Added support for Polish fonts for E-Ink devices FIX * Polilsh E-Ink/OLED font retouch, fixed Czech/Slovak font double space bug * Fixed platformio.ini uncommented flag
This commit is contained in:
parent
0fe8d4ccc7
commit
a0a4c5bc79
@ -49,7 +49,7 @@ build_flags = -Wno-missing-field-initializers
|
|||||||
-DMESHTASTIC_EXCLUDE_HEALTH_TELEMETRY=1
|
-DMESHTASTIC_EXCLUDE_HEALTH_TELEMETRY=1
|
||||||
-DMESHTASTIC_EXCLUDE_POWERSTRESS=1 ; exclude power stress test module from main firmware
|
-DMESHTASTIC_EXCLUDE_POWERSTRESS=1 ; exclude power stress test module from main firmware
|
||||||
#-DBUILD_EPOCH=$UNIX_TIME
|
#-DBUILD_EPOCH=$UNIX_TIME
|
||||||
;-D OLED_PL
|
#-D OLED_PL=1
|
||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_filters = direct
|
monitor_filters = direct
|
||||||
|
@ -20,9 +20,15 @@
|
|||||||
defined(ST7789_CS) || defined(USE_ST7789) || defined(HX8357_CS)) && \
|
defined(ST7789_CS) || defined(USE_ST7789) || defined(HX8357_CS)) && \
|
||||||
!defined(DISPLAY_FORCE_SMALL_FONTS)
|
!defined(DISPLAY_FORCE_SMALL_FONTS)
|
||||||
// The screen is bigger so use bigger fonts
|
// The screen is bigger so use bigger fonts
|
||||||
|
#ifdef OLED_PL
|
||||||
|
#define FONT_SMALL ArialMT_Plain_16_PL // Height: 19
|
||||||
|
#define FONT_MEDIUM ArialMT_Plain_24_PL // Height: 28
|
||||||
|
#define FONT_LARGE ArialMT_Plain_24_PL // Height: 28
|
||||||
|
#else
|
||||||
#define FONT_SMALL ArialMT_Plain_16 // Height: 19
|
#define FONT_SMALL ArialMT_Plain_16 // Height: 19
|
||||||
#define FONT_MEDIUM ArialMT_Plain_24 // Height: 28
|
#define FONT_MEDIUM ArialMT_Plain_24 // Height: 28
|
||||||
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
|
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#ifdef OLED_PL
|
#ifdef OLED_PL
|
||||||
#define FONT_SMALL ArialMT_Plain_10_PL
|
#define FONT_SMALL ArialMT_Plain_10_PL
|
||||||
@ -41,6 +47,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef OLED_PL
|
||||||
|
#define FONT_MEDIUM ArialMT_Plain_16_PL // Height: 19
|
||||||
|
#else
|
||||||
#ifdef OLED_UA
|
#ifdef OLED_UA
|
||||||
#define FONT_MEDIUM ArialMT_Plain_16_UA // Height: 19
|
#define FONT_MEDIUM ArialMT_Plain_16_UA // Height: 19
|
||||||
#else
|
#else
|
||||||
@ -50,6 +59,10 @@
|
|||||||
#define FONT_MEDIUM ArialMT_Plain_16 // Height: 19
|
#define FONT_MEDIUM ArialMT_Plain_16 // Height: 19
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef OLED_PL
|
||||||
|
#define FONT_LARGE ArialMT_Plain_24_PL // Height: 28
|
||||||
|
#else
|
||||||
#ifdef OLED_UA
|
#ifdef OLED_UA
|
||||||
#define FONT_LARGE ArialMT_Plain_24_UA // Height: 28
|
#define FONT_LARGE ArialMT_Plain_24_UA // Height: 28
|
||||||
#else
|
#else
|
||||||
@ -60,6 +73,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _fontHeight(font) ((font)[1] + 1) // height is position 1
|
#define _fontHeight(font) ((font)[1] + 1) // height is position 1
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ const uint8_t ArialMT_Plain_10_CS[] PROGMEM = {
|
|||||||
0x20, // First char: 32
|
0x20, // First char: 32
|
||||||
0xE0, // Number of chars: 224
|
0xE0, // Number of chars: 224
|
||||||
// Jump Table:
|
// Jump Table:
|
||||||
0xFF, 0xFF, 0x00, 0x0A, // 32
|
0xFF, 0xFF, 0x00, 0x03, // 32
|
||||||
0x00, 0x00, 0x04, 0x03, // 33
|
0x00, 0x00, 0x04, 0x03, // 33
|
||||||
0x00, 0x04, 0x05, 0x04, // 34
|
0x00, 0x04, 0x05, 0x04, // 34
|
||||||
0x00, 0x09, 0x09, 0x06, // 35
|
0x00, 0x09, 0x09, 0x06, // 35
|
||||||
@ -453,7 +453,7 @@ const uint8_t ArialMT_Plain_16_CS[] PROGMEM = {
|
|||||||
0x20, // First char: 32
|
0x20, // First char: 32
|
||||||
0xE0, // Number of chars: 224
|
0xE0, // Number of chars: 224
|
||||||
// Jump Table:
|
// Jump Table:
|
||||||
0xFF, 0xFF, 0x00, 0x10, // 32
|
0xFF, 0xFF, 0x00, 0x04, // 32
|
||||||
0x00, 0x00, 0x08, 0x04, // 33
|
0x00, 0x00, 0x08, 0x04, // 33
|
||||||
0x00, 0x08, 0x0D, 0x06, // 34
|
0x00, 0x08, 0x0D, 0x06, // 34
|
||||||
0x00, 0x15, 0x1A, 0x0A, // 35
|
0x00, 0x15, 0x1A, 0x0A, // 35
|
||||||
@ -1036,7 +1036,7 @@ const uint8_t ArialMT_Plain_24_CS[] PROGMEM = {
|
|||||||
0x20, // First char: 32
|
0x20, // First char: 32
|
||||||
0xE0, // Number of chars: 224
|
0xE0, // Number of chars: 224
|
||||||
// Jump Table:
|
// Jump Table:
|
||||||
0xFF, 0xFF, 0x00, 0x18, // 32
|
0xFF, 0xFF, 0x00, 0x06, // 32
|
||||||
0x00, 0x00, 0x13, 0x06, // 33
|
0x00, 0x00, 0x13, 0x06, // 33
|
||||||
0x00, 0x13, 0x1A, 0x08, // 34
|
0x00, 0x13, 0x1A, 0x08, // 34
|
||||||
0x00, 0x2D, 0x33, 0x0E, // 35
|
0x00, 0x2D, 0x33, 0x0E, // 35
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -6,6 +6,7 @@
|
|||||||
#elif __MBED__
|
#elif __MBED__
|
||||||
#define PROGMEM
|
#define PROGMEM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const uint8_t ArialMT_Plain_10_PL[] PROGMEM;
|
extern const uint8_t ArialMT_Plain_10_PL[] PROGMEM;
|
||||||
|
extern const uint8_t ArialMT_Plain_16_PL[] PROGMEM;
|
||||||
|
extern const uint8_t ArialMT_Plain_24_PL[] PROGMEM;
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user