Removed fonts dependencies (now using Qt font as default) and removed some complex settings migration code.

This commit is contained in:
ItsLemmy
2025-11-29 10:38:06 -05:00
parent 588a5782ae
commit 9d4ac03d21
4 changed files with 6 additions and 335 deletions
-15
View File
@@ -113,15 +113,6 @@ Singleton {
}
function finalizeFontLoading() {
// Add fallbacks if needed (models are already sorted)
if (monospaceFonts.count === 0) {
addFallbackFonts(monospaceFonts, ["DejaVu Sans Mono"]);
}
if (displayFonts.count === 0) {
addFallbackFonts(displayFonts, ["Inter", "Roboto", "DejaVu Sans"]);
}
fontsLoaded = true;
isLoading = false;
Logger.d("Font", "Loaded", availableFonts.count, "fonts:", monospaceFonts.count, "monospace,", displayFonts.count, "display");
@@ -168,12 +159,6 @@ Singleton {
result = true;
}
// Essential fallback fonts only
var essentialFonts = ["Inter", "Roboto", "DejaVu Sans"];
if (essentialFonts.indexOf(fontName) !== -1) {
result = true;
}
// Cache the result
if (!fontCache[fontName]) {
fontCache[fontName] = {};