mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-03 16:17:17 +03:00
Pin to 5.2 where the files still exist. Also, update for latest terminal without a "user-css" section.
parent
4820616625
commit
0b24ee2962
@ -1,35 +1,18 @@
|
|||||||
In the terminal:
|
In the terminal:
|
||||||
1. Use the keyboard shortcut <kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>P</kbd>
|
1. Use the keyboard shortcut <kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>J</kbd> to open the JavaScript Console.
|
||||||
2. Scroll down to "Custom CSS (Inline Text)".
|
2. Copy & paste the following:
|
||||||
3. Copy & paste the following:
|
|
||||||
```
|
```
|
||||||
@font-face{
|
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}`)
|
||||||
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';
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
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:
|
- 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-face{
|
||||||
font-family: 'Fira Code';
|
font-family: 'Fira Code';
|
||||||
src: url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/eot/FiraCode-Regular.eot') format('embedded-opentype'),
|
src: url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/woff2/FiraCode-Regular.woff2') format('woff2'),
|
||||||
url('https://raw.githubusercontent.com/tonsky/FiraCode/master/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/master/distr/woff/FiraCode-Regular.woff') format('woff'),
|
url('https://raw.githubusercontent.com/tonsky/FiraCode/5.2/distr/ttf/FiraCode-Regular.ttf') format('truetype');
|
||||||
url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/ttf/FiraCode-Regular.ttf') format('truetype');
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user