mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
OLED Cyrillic Support for v1.3 (#1640)
* Extended ASCII codes and cyrillic support (cherry picked from commite977840805) * Fixed `ё`, `Ё` letters (cherry picked from commit2f4a2ccb2f) * Fixed `customFontTableLookup` execution flow (cherry picked from commit377f909f36) * [OLED] Specifying the language by defining it in `platformio.ini` (cherry picked from commitddd8132b24) * [OLED] localization guide (cherry picked from commita3267c886f) * [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:
committed by
GitHub
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