2024-02-27 19:49:46 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#ifdef OLED_RU
|
|
|
|
|
#include "graphics/fonts/OLEDDisplayFontsRU.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef OLED_UA
|
|
|
|
|
#include "graphics/fonts/OLEDDisplayFontsUA.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-04-03 20:17:13 +01:00
|
|
|
#if (defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(ST7789_CS) || defined(HX8357_CS)) && \
|
2024-02-27 19:49:46 +01:00
|
|
|
!defined(DISPLAY_FORCE_SMALL_FONTS)
|
|
|
|
|
// The screen is bigger so use bigger fonts
|
|
|
|
|
#define FONT_SMALL ArialMT_Plain_16 // Height: 19
|
|
|
|
|
#define FONT_MEDIUM ArialMT_Plain_24 // Height: 28
|
|
|
|
|
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
|
|
|
|
|
#else
|
|
|
|
|
#ifdef OLED_RU
|
|
|
|
|
#define FONT_SMALL ArialMT_Plain_10_RU
|
|
|
|
|
#else
|
|
|
|
|
#ifdef OLED_UA
|
|
|
|
|
#define FONT_SMALL ArialMT_Plain_10_UA
|
|
|
|
|
#else
|
|
|
|
|
#define FONT_SMALL ArialMT_Plain_10 // Height: 13
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#define FONT_MEDIUM ArialMT_Plain_16 // Height: 19
|
|
|
|
|
#define FONT_LARGE ArialMT_Plain_24 // Height: 28
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-06-25 11:26:02 -05:00
|
|
|
#define _fontHeight(font) ((font)[1] + 1) // height is position 1
|
2024-02-27 19:49:46 +01:00
|
|
|
|
2024-06-25 11:26:02 -05:00
|
|
|
#define FONT_HEIGHT_SMALL _fontHeight(FONT_SMALL)
|
|
|
|
|
#define FONT_HEIGHT_MEDIUM _fontHeight(FONT_MEDIUM)
|
|
|
|
|
#define FONT_HEIGHT_LARGE _fontHeight(FONT_LARGE)
|