From 52a9247fd8e1e68c3e820073b33f4e0169a9ad4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20R=C3=B8en?= Date: Thu, 11 Aug 2016 13:17:00 +0200 Subject: [PATCH] Tweaked text to reflect ligatures being enabled by default in Atom 1.9 --- Atom-instructions.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Atom-instructions.md b/Atom-instructions.md index e423e33..db58c93 100644 --- a/Atom-instructions.md +++ b/Atom-instructions.md @@ -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; } ``` -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) 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;