New ligature font support issue?


#1

This does not work for me:

atom-text-editor {
   text-rendering: optimizeLegibility;
}

but this code, from the Monoid repo works great, on all three fonts:

* {
    //-webkit-font-smoothing: antialiased;
    -webkit-font-feature-settings: "liga" on, "calt" on;
  }
  atom-text-editor::shadow {
    .cursor-line {
      -webkit-font-feature-settings: "liga" off, "calt" off;
    }
  }

Not only does this enable ligatures, but when the cursor is on a line with a ligature it turns that one off so you can better see the characters. Not sure if you’re aware of this, or if this code is officially supported.

Also, aesthetics aside, so far I am finding Fire Code to have the dest character display. Little things like comments work better


PHP Ligature Support
#2
atom-text-editor {
   text-rendering: optimizeLegibility;
}

Works just fine for me, I am using it with Hasklig, Monoid and FiraCode in the fonts package. I do like the idea of disabling the ligatures on the line you’re editing though, the ligatures sometimes interfere with writing code.


#3

Thanks. This is quite cool.


#4

Thanks, this worked beautifully for me.