From f1d7a6c865900ab8400732d7eafbd3d59403dfa9 Mon Sep 17 00:00:00 2001 From: Ni Rui Date: Thu, 25 Apr 2024 18:16:14 +0800 Subject: [PATCH] Change the ordering of custom fonts. This allows `xtermjs` to correctly calculate the text line height --- ui/widgets/screen_console.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/widgets/screen_console.vue b/ui/widgets/screen_console.vue index 42aec15..f5e2c0e 100644 --- a/ui/widgets/screen_console.vue +++ b/ui/widgets/screen_console.vue @@ -112,7 +112,7 @@ import { consoleScreenKeys } from "./screen_console_keys.js"; import "./screen_console.css"; import "@xterm/xterm/css/xterm.css"; -const termTypeFaces = "PureNerdFont, Hack"; +const termTypeFaces = "Hack, PureNerdFont"; const termFallbackTypeFace = '"Cascadia Code" , monospace'; const termTypeFaceLoadTimeout = 3000; const termTypeFaceLoadError = @@ -158,7 +158,7 @@ class Term { fontFamily: termTypeFaces + ", " + termFallbackTypeFace, fontSize: this.fontSize, letterSpacing: 1, - lineHeight: 1.5, + lineHeight: 1.3, logLevel: process.env.NODE_ENV === "development" ? "info" : "off", theme: { background: this.control.activeColor(),