OLED Cyrillic Support for v1.3 (#1640)
* Extended ASCII codes and cyrillic support (cherry picked from commit e977840805d3d14260f917b03a2db957d52ec657) * Fixed `ё`, `Ё` letters (cherry picked from commit 2f4a2ccb2f50cab879f4a1002215c176a435bae7) * Fixed `customFontTableLookup` execution flow (cherry picked from commit 377f909f36201ba6f7fe4511f631f54b8cb2ab3e) * [OLED] Specifying the language by defining it in `platformio.ini` (cherry picked from commit ddd8132b24095556e0b3cd17f1a3b3458bc15c4e) * [OLED] localization guide (cherry picked from commit a3267c886f36731c8f123636162a8c2a752a80c4) * [OLED] Cyrillic support Localization guide has been moved to https://github.com/meshtastic/Meshtastic/tree/master/docs/developers/Firmware https://meshtastic.org/docs/developers/Firmware/oled-l10n-guide Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
co-authored by
GitHub
Thomas Göttgens
Ben Meadors
parent
285ba9639e
commit
cb3010b58c
@@ -44,6 +44,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "mesh/http/WiFiAPClient.h"
|
||||
#endif
|
||||
|
||||
#ifdef OLED_RU
|
||||
#include "fonts/OLEDDisplayFontsRU.h"
|
||||
#endif
|
||||
|
||||
using namespace meshtastic; /** @todo remove */
|
||||
|
||||
extern bool loadProto(const char *filename, size_t protoSize, size_t objSize, const pb_msgdesc_t *fields, void *dest_struct);
|
||||
@@ -100,7 +104,11 @@ static uint16_t displayWidth, displayHeight;
|
||||
#define FONT_MEDIUM ArialMT_Plain_24
|
||||
#define FONT_LARGE ArialMT_Plain_24
|
||||
#else
|
||||
#ifdef OLED_RU
|
||||
#define FONT_SMALL ArialMT_Plain_10_RU
|
||||
#else
|
||||
#define FONT_SMALL ArialMT_Plain_10
|
||||
#endif
|
||||
#define FONT_MEDIUM ArialMT_Plain_16
|
||||
#define FONT_LARGE ArialMT_Plain_24
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user