Skip to content

Commit

Permalink
Change the ordering of custom fonts. This allows xtermjs to correct…
Browse files Browse the repository at this point in the history
…ly calculate the text line height
  • Loading branch information
nirui committed Apr 25, 2024
1 parent 28e667a commit f1d7a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/widgets/screen_console.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit f1d7a6c

Please sign in to comment.