CSS: Disable font ligatures in all browsers

2019-02-16 15:00发布

As google fonts are blocked in China I had to download them and use FontSquirrel for conversion.

The problem: fi/ff/etc are ugly

I did all of the steps here Prevent ligatures in Safari (Mavericks/iOS7) via CSS but no cigar.

How can I disable ligatures at once? -webkit-font-variant-ligatures: no-common-ligatures; Doesn't work

2条回答
太酷不给撩
2楼-- · 2019-02-16 15:27

Essentially the same answer that andreas offered, but here's the full CSS for easy reference:

* {
font-variant-ligatures: none;
}

查看更多
等我变得足够好
3楼-- · 2019-02-16 15:28

Despite no-common-ligatures you can try values like none, unset or no-contextual . See MDN for all possible values.

Also it should be supported in all modern browsers.

查看更多
登录 后发表回答