Skip to content

Commit

Permalink
Fix ukrainian fonts (meshtastic#5468)
Browse files Browse the repository at this point in the history
* FIX:  rollback to !4624

* UPDATE: new 16 and 24 UA Fonts and fixes
  • Loading branch information
panaceya authored and fifieldt committed Dec 14, 2024
1 parent 6d14c1a commit 6c6b323
Show file tree
Hide file tree
Showing 6 changed files with 1,645 additions and 135 deletions.
3 changes: 1 addition & 2 deletions src/graphics/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Screen.h"
#include "../userPrefs.h"
#include "PowerMon.h"
#include "Throttle.h"
#include "configuration.h"
Expand Down Expand Up @@ -2757,4 +2756,4 @@ int Screen::handleAdminMessage(const meshtastic_AdminMessage *arg)
} // namespace graphics
#else
graphics::Screen::Screen(ScanI2C::DeviceAddress, meshtastic_Config_DisplayConfig_OledType, OLEDDISPLAY_GEOMETRY) {}
#endif // HAS_SCREEN
#endif // HAS_SCREEN
1 change: 1 addition & 0 deletions src/graphics/Screen.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

#include "../userPrefs.h"
#include "configuration.h"

#include "detect/ScanI2C.h"
Expand Down
12 changes: 10 additions & 2 deletions src/graphics/ScreenFonts.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,22 @@
#define FONT_SMALL ArialMT_Plain_10_RU
#else
#ifdef OLED_UA
#define FONT_SMALL ArialMT_Plain_10_UA
#define FONT_SMALL ArialMT_Plain_10_UA // Height: 13
#else
#define FONT_SMALL ArialMT_Plain_10 // Height: 13
#endif
#endif
#endif
#ifdef OLED_UA
#define FONT_MEDIUM ArialMT_Plain_16_UA // Height: 19
#else
#define FONT_MEDIUM ArialMT_Plain_16 // Height: 19
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
#endif
#ifdef OLED_UA
#define FONT_LARGE ArialMT_Plain_24_UA // Height: 28
#else
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
#endif
#endif

#define _fontHeight(font) ((font)[1] + 1) // height is position 1
Expand Down
Loading

0 comments on commit 6c6b323

Please sign in to comment.