1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 15:03:07 +01:00

Reorganized fonts and changed Ubuntu-font to 8bit version

This commit is contained in:
2025-07-08 15:19:07 +02:00
parent ae7130b86c
commit fa4b563ff0
50 changed files with 5506 additions and 3241 deletions

View File

@@ -94,7 +94,7 @@ class PageXTETrack : public Page
getdisplay().setTextColor(commonData->fgcolor);
// descriptions
getdisplay().setFont(&Ubuntu_Bold8pt7b);
getdisplay().setFont(&Ubuntu_Bold8pt8b);
getdisplay().setCursor(50, 188);
getdisplay().print("Cross-track error");
getdisplay().setCursor(270, 188);
@@ -148,7 +148,7 @@ class PageXTETrack : public Page
sval_wpname = "Tonne 122";
}
getdisplay().setFont(&Ubuntu_Bold10pt7b);
getdisplay().setFont(&Ubuntu_Bold10pt8b);
getdisplay().getTextBounds(sval_wpname, 0, 150, &x, &y, &w, &h);
// TODO if text don't fix use smaller font size.
// if smallest size does not fit use 2 lines