├── Inconsolata.otf └── README.md /Inconsolata.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Silverwolf90/inconsolata-js-ligatures/HEAD/Inconsolata.otf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Inconsolata + JavaScript Ligatures 2 | 3 | This is the font **Inconsolata** with some ligatures mostly useful for people writing JavaScript. There are a few other modifications in addition to the ligatures. All the ligatures were originally taken from [Fira Code](https://github.com/tonsky/FiraCode) although I made some slight modifications. 4 | 5 | I've never used FontForge before and I kind of stumbled through the program, so it's more than likely I didn't do stuff according to best practices but it seems to work (on Windows 7 in Atom, untested anywhere else). 6 | 7 | ### Ligatures 8 | 9 | * `===` Strict equal 10 | * `!==` Strict not equal 11 | * `=>` Arrow Functions 12 | * `<=` Less than or equal to 13 | * `>=` Greater than or equal to 14 | * `||` Or 15 | * `&&` And 16 | * `//` Comment 17 | * `->` Thin Arrow 18 | * `::` function bind operator proposal 19 | 20 | #### Before 21 | 22 | ![](http://i.imgur.com/nyAmVYe.png) 23 | ![](http://i.imgur.com/OWflWas.png) 24 | 25 | #### After 26 | 27 | ![](http://i.imgur.com/rWO3vz9.png?1) 28 | ![](http://i.imgur.com/KSA1Ab7.png) 29 | 30 | This is a bit opinionated, as I never use `==` and `!=` so I have the strict versions only take up 2 characters instead of 3. 31 | 32 | ### Other Modifications 33 | 34 | * Single and Double quotes are now straight - used the glyphs in [Inconsolata-dz](http://nodnod.net/2009/feb/12/adding-straight-single-and-double-quotes-inconsola/) 35 | * The bottom of square braces `[]` are extended to match parentheses `()` and curly braces `{}` 36 | 37 | ### Usage in Atom 38 | 39 | The editor Atom supports ligatures through the following: 40 | 41 | ```css 42 | atom-text-editor { 43 | font-family: 'Inconsolata', 'Courier New', Courier; 44 | text-rendering: optimizeLegibility; 45 | } 46 | ``` 47 | --------------------------------------------------------------------------------