From 0b24ee2962fc3dcb37c3cc469b9f2107677cc416 Mon Sep 17 00:00:00 2001 From: Randall Mason Date: Sun, 8 Aug 2021 21:04:03 -0500 Subject: [PATCH] Pin to 5.2 where the files still exist. Also, update for latest terminal without a "user-css" section. --- ChromeOS-Terminal.md | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/ChromeOS-Terminal.md b/ChromeOS-Terminal.md index dd60bfa..158fe4b 100644 --- a/ChromeOS-Terminal.md +++ b/ChromeOS-Terminal.md @@ -1,35 +1,18 @@ In the terminal: -1. Use the keyboard shortcut CTRL + SHIFT + P -2. Scroll down to "Custom CSS (Inline Text)". -3. Copy & paste the following: +1. Use the keyboard shortcut CTRL + SHIFT + J to open the JavaScript Console. +2. Copy & paste the following: ``` -@font-face{ - font-family: 'Fira Code'; - src: url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/eot/FiraCode-Regular.eot') format('embedded-opentype'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff2/FiraCode-Regular.woff2') format('woff2'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff/FiraCode-Regular.woff') format('woff'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/ttf/FiraCode-Regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; -} - -* { - -webkit-font-feature-settings: "liga" on, "calt" on; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - font-family: 'Fira Code'; -} +term_.prefs_.set('user-css-text', `@font-face{\n font-family: 'Fira Code';\n src: url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/woff2/FiraCode-Regular.woff2') format('woff2'),\n url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/woff/FiraCode-Regular.woff') format('woff'),\n url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/ttf/FiraCode-Regular.ttf') format('truetype');\n font-weight: normal;\n font-style: normal;\n}\n\n* {\n -webkit-font-feature-settings: "liga" on, "calt" on;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n font-family: 'Fira Code';\n}`) ``` -4. There is no step 4! +3. There is no step 3! - 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'; - src: url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/eot/FiraCode-Regular.eot') format('embedded-opentype'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff2/FiraCode-Regular.woff2') format('woff2'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff/FiraCode-Regular.woff') format('woff'), - url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/ttf/FiraCode-Regular.ttf') format('truetype'); + 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'); font-weight: normal; font-style: normal; }