mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-05 17:17:34 +03:00
Tweaked text to reflect ligatures being enabled by default in Atom 1.9
parent
8fe759aa19
commit
52a9247fd8
@ -4,24 +4,25 @@ To change your font to Fira Code, open Atom's settings (`cmd+,`), make sure the
|
|||||||
|
|
||||||
## Ligatures
|
## Ligatures
|
||||||
|
|
||||||
To enable ligatures, `Menu → Stylesheet...`
|
Ligatures are enabled by default in Atom 1.9 and above.
|
||||||
|
|
||||||
|
To enable ligatures on older Atom versions (Atom 1.1 and newer), go to `Menu → Stylesheet...`
|
||||||
|
|
||||||
![](https://i.imgur.com/sulSOtK.png)
|
![](https://i.imgur.com/sulSOtK.png)
|
||||||
|
|
||||||
and add `text-rendering` to `atom-text-editor`:
|
and add `text-rendering` to `atom-text-editor`:
|
||||||
```
|
|
||||||
|
```css
|
||||||
atom-text-editor {
|
atom-text-editor {
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You’ll need Atom 1.1 or newer.
|
|
||||||
|
|
||||||
Beware that in some syntaxes **selected ligatures might not work**. This is usually a syntax parser/tokenization issue (e.g. `->` breaks into two symbols by JS/Ruby syntax highlighter). See issues [#63](https://github.com/tonsky/FiraCode/issues/63) and [#69](https://github.com/tonsky/FiraCode/issues/69)
|
Beware that in some syntaxes **selected ligatures might not work**. This is usually a syntax parser/tokenization issue (e.g. `->` breaks into two symbols by JS/Ruby syntax highlighter). See issues [#63](https://github.com/tonsky/FiraCode/issues/63) and [#69](https://github.com/tonsky/FiraCode/issues/69)
|
||||||
|
|
||||||
To turn off ligatures inside of strings and regular expressions you can add this to your stylesheet:
|
To turn off ligatures inside of strings and regular expressions you can add this to your stylesheet:
|
||||||
|
|
||||||
```
|
```css
|
||||||
atom-text-editor::shadow .string.quoted,
|
atom-text-editor::shadow .string.quoted,
|
||||||
atom-text-editor::shadow .string.regexp {
|
atom-text-editor::shadow .string.regexp {
|
||||||
-webkit-font-feature-settings: "liga" off, "calt" off;
|
-webkit-font-feature-settings: "liga" off, "calt" off;
|
||||||
|
Loading…
Reference in New Issue
Block a user