txtreader: Trying to find reasonable font combo

master
Pavel Machek 2025-02-15 13:09:24 +01:00
parent 39ac54842e
commit 71b34a5b87
1 changed files with 2 additions and 2 deletions

View File

@ -90,9 +90,9 @@ function onFileSelected(file) {
let char_w = 6; let char_w = 6;
g.clear(); g.clear();
if (!big) { if (!big) {
g.setFont("6x8", 1); g.setFont("6x15", 1);
} else { } else {
g.setFont("6x15", 2); g.setFont("12x20", 1);
} }
char_h = g.getFontHeight(); char_h = g.getFontHeight();
char_w = g.stringWidth("w"); char_w = g.stringWidth("w");