Use native display resolution and adaptive typography

This commit is contained in:
mikecarper committed 2026-09-08 16:02:16 -07:00
1 parent 0058f72192
commit 846282adf4
64 files changed
+5643 -533

No files matched your search

+6
View File
@@ -31,6 +31,12 @@ public:
int width() const { return _w; }
int height() const { return _h; }
// Dense 5/6px body fonts are only for sub-160px panels, in either rotation.
bool useSmallMessageFont() const { return _w < 160 && _h < 160; }
virtual int textLineHeight() {
const int glyph = getTextWidth("M");
return glyph <= 6 ? 10 : glyph * 2;
}
virtual bool isOn() = 0;
virtual bool supportsRotation() const { return false; }