Add independent default font for text files

This commit is contained in:
jpirnay
2026-05-14 23:00:15 +02:00
parent 04caa2f648
commit fc02ec67d9
31 changed files with 124 additions and 8 deletions
+2 -2
View File
@@ -273,7 +273,7 @@ void TxtReaderActivity::initializeReader() {
}
// Store current settings for cache validation
cachedFontId = SETTINGS.getReaderFontId();
cachedFontId = SETTINGS.getTxtReaderFontId();
cachedScreenMargin = SETTINGS.screenMargin;
cachedParagraphAlignment = SETTINGS.paragraphAlignment;
@@ -710,7 +710,7 @@ bool TxtReaderActivity::drawCurrentPageToBuffer(const std::string& filePath, Gfx
}
// Compute layout values that match what initializeReader() produces
const int fontId = SETTINGS.getReaderFontId();
const int fontId = SETTINGS.getTxtReaderFontId();
const uint8_t screenMargin = SETTINGS.screenMargin;
const uint8_t paragraphAlignment = SETTINGS.paragraphAlignment;