Windows 7 users using Internet Explorer 10 or 11 experience an error that causes text to disappear when using font settings. https://connect.microsoft.com/IE/feedbackdetail/view/831964
Windows 8 users do not experience the same problem.
If you have many users using Windows 7, just removing font-feature-settings and -ms-font-feature-settings will display the text.
I would still advise you to enable kerning in other browsers if you want the text to display the same in all other browsers. You can provide forward and backward compatibility as follows:
.kern { -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern=1"; -o-font-feature-settings: "kern" 1; font-kerning: normal; }
You can use javascript if you still want to introduce kerning to Windows 8 and 10 users.
kern.css:
.kern { -webkit-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern" 1; -moz-font-feature-settings: "kern=1"; -o-font-feature-settings: "kern" 1; font-kerning: normal; } .kern-ie { font-feature-settings: "kern" 1; -ms-font-feature-settings: "kern=1"; }
kern.js:
var ua = navigator.userAgent.toLowerCase(); var isNotWin7 = ua.indexOf('windows nt 6.1') == 0; if (isNotWin7) { var kernedTextCollection = getElementsByClassName(".kern"); for(var i = 0; i < kernedTextCollection.length; i++) { kernedTextCollection.item(i).className = kernedTextCollection.item(i).className + ' kern-ie'; } }
index.html
<link rel="stylesheet" type="text/css" href="kern.css">
user2342460
source share