Skip to content

Commit cbb83d4

Browse files
authored
修复无法使用部分日志字体的问题 (#4096)
1 parent bab8632 commit cbb83d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ private static final class LogWindowSkin extends SkinBase<LogWindowImpl> {
307307
listView.scrollTo(listView.getItems().size() - 1);
308308
});
309309

310-
listView.setStyle("-fx-font-family: " + Lang.requireNonNullElse(config().getFontFamily(), FXUtils.DEFAULT_MONOSPACE_FONT)
311-
+ "; -fx-font-size: " + config().getFontSize() + "px;");
310+
listView.setStyle("-fx-font-family: \"" + Lang.requireNonNullElse(config().getFontFamily(), FXUtils.DEFAULT_MONOSPACE_FONT)
311+
+ "\"; -fx-font-size: " + config().getFontSize() + "px;");
312312
Holder<Object> lastCell = new Holder<>();
313313
listView.setCellFactory(x -> new ListCell<Log>() {
314314
{

0 commit comments

Comments
 (0)