1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-07-04 16:06:26 +03:00

Updated ChromeOS Terminal (markdown)

Randall Mason 2021-08-10 21:02:20 -05:00
parent 7b77e372fc
commit 7a7e359eb9

@ -1,8 +1,10 @@
In the terminal:
1. Use the keyboard shortcut <kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>J</kbd> to open the JavaScript Console.
2. Copy & paste the following:
2. Copy & paste the following 3 commands:
```
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", "PT Mono", "DejaVu Sans Mono", "Noto Sans Mono", "Everson Mono", FreeMono, Menlo, Terminal, monospace;\n}`)
term_.prefs_.set('font-family', '"Fira Code", "PT Mono", "DejaVu Sans Mono", "Noto Sans Mono", "Everson Mono", FreeMono, Menlo, Terminal, monospace');
term_.prefs_.set('user-css-text', '* {\n -webkit-font-feature-settings: "liga" on, "calt" on;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n}')
term_.prefs_.set('user-css', 'https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap')
```
3. There is no step 3!