diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java index d6b8b8097..44a3d8d93 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Config.java @@ -146,7 +146,7 @@ public final class Config implements Cloneable, Observable { private ObservableList> accountStorages = FXCollections.observableArrayList(); @SerializedName("fontFamily") - private StringProperty fontFamily = new SimpleStringProperty("Consolas"); + private StringProperty fontFamily = new SimpleStringProperty("Monospace"); @SerializedName("fontSize") private DoubleProperty fontSize = new SimpleDoubleProperty(12); @@ -188,6 +188,10 @@ public final class Config implements Cloneable, Observable { private transient ObservableHelper helper = new ObservableHelper(this); public Config() { + // Default override for better-looking logs on Windows + if (System.getProperty("os.name").startsWith("Windows")) { + this.fontFamily = new SimpleStringProperty("Consolas"); + } PropertyUtils.attachListener(this, helper); }