atom-material / atom-material-ui

A dynamic UI theme for Atom that follows Google's Material Design Guidelines
MIT License
817 stars 203 forks source link

2 characters combining into 1 #273

Closed dudeofawesome closed 8 years ago

dudeofawesome commented 8 years ago

If I type fi or fl in any text widgets within atom, the 2 characters get combined into 1 single width character.

screen shot 2016-04-14 at 6 58 09 pm

This only happens with a lowercase f and lowercase i or l, and only in that order. Changing any of the characters to uppercase causes them to not merge.

If I change my theme to Atom Dark, then the issue goes away, so I believe this is caused by Atom Material UI.

The font I am using is Fira Mono

I am using Atom Material UI with Atom 1.7.0 (although this issue has been around since at least 1.6.x) on OS X 10.11.3

silvestreh commented 8 years ago

It's called ligatures. Both characters are still there, but they're rendered as a special single character. If you want to override this behavior, open your user stylesheet and add this:

atom-text-editor, atom-text-editor::shadow {
    text-rendering: optimizeSpeed;
}

Personally, I love programming ligatures available in Fira Code:

dudeofawesome commented 8 years ago

TIL. When I tried out Fira Code, fi and fl stopped being combined.

Thanks!