From 3ddeba1a862935b2574953eeae52b89401a32f40 Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Mon, 9 Aug 2021 11:03:12 -0400 Subject: [PATCH] add fallback fonts if Fira Code isn't available --- ChromeOS-Terminal.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChromeOS-Terminal.md b/ChromeOS-Terminal.md index 165ea72..96b3074 100644 --- a/ChromeOS-Terminal.md +++ b/ChromeOS-Terminal.md @@ -9,7 +9,7 @@ term_.prefs_.set('user-css-text', `@font-face{\n font-family: 'Fira Code';\n - Note, there is a bug where you need to push `ctrl-0` to get the cursor to input text at the right place. The following settings fix that bug, but the cursor is still in the wrong place: ``` @font-face{ - font-family: 'Fira Code'; + font-family: "Fira Code", "PT Mono", "DejaVu Sans Mono", "Noto Sans Mono", "Everson Mono", FreeMono, Menlo, Terminal, monospace; src: url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/woff2/FiraCode-Regular.woff2') format('woff2'), url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/woff/FiraCode-Regular.woff') format('woff'), url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/ttf/FiraCode-Regular.ttf') format('truetype');