mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 01:36:12 +00:00
u8g2 wrapper: allow larger font when size >= 2
This commit is contained in:
@@ -29,7 +29,7 @@ class U8g2Display : public DisplayDriver {
|
|||||||
|
|
||||||
void applyFont(int sz) {
|
void applyFont(int sz) {
|
||||||
if (sz >= 2) {
|
if (sz >= 2) {
|
||||||
_u8g2.setFont(u8g2_font_5x7_mr); // 5×7 — "large" for this display
|
_u8g2.setFont(u8g2_font_6x10_mr); // slightly larger font for better readability. TODO: more font sizes?
|
||||||
} else {
|
} else {
|
||||||
_u8g2.setFont(u8g2_font_5x7_mr);
|
_u8g2.setFont(u8g2_font_5x7_mr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user