fixed minor bugs in linux

This commit is contained in:
Josh Ashton
2024-04-08 10:26:25 -06:00
parent 8ac780faeb
commit 3db9b0485d
21 changed files with 17 additions and 5 deletions
+5 -4
View File
@@ -185,9 +185,10 @@ public class Settings {
fontName + ".ttf";
else if(os.startsWith("mac"))
fontFilepath = "/Library/Fonts/" + fontName + ".ttf";
else
fontFilepath = "/usr/share/fonts/" + fontName + ".ttf";
else {
fontName = "HackNerdFontMono-Regular";
fontFilepath = "/usr/share/fonts/TTF/" + fontName + ".ttf";
}
// Register the font with the GraphicsEnvironment.
try {
GraphicsEnvironment ge = GraphicsEnvironment.
@@ -538,4 +539,4 @@ public class Settings {
this.autoSaveFrequency = autoSaveFrequency;
updateSettingsFile();
}
}
}