CSS: Disable font ligatures in all browsers

南楼画角 提交于 2019-12-18 05:44:20

问题


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


回答1:


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.




回答2:


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

* {
font-variant-ligatures: none;
}


来源:https://stackoverflow.com/questions/38926144/css-disable-font-ligatures-in-all-browsers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!