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

Tweaked text to reflect ligatures being enabled by default in Atom 1.9

Kim Røen 2016-08-11 13:17:00 +02:00
parent 8fe759aa19
commit 52a9247fd8

@ -4,24 +4,25 @@ To change your font to Fira Code, open Atom's settings (`cmd+,`), make sure the
## 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)
and add `text-rendering` to `atom-text-editor`:
```
```css
atom-text-editor {
text-rendering: optimizeLegibility;
}
```
Youll 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)
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.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;