Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -167,6 +167,18 @@ |
168 | 168 | * It also apply the font from cookie, if any. |
169 | 169 | */ |
170 | 170 | setup: function() { |
| 171 | + // Blacklist some browsers that are known to have issues with font rendering |
| 172 | + if ( navigator.appName === 'Microsoft Internet Explorer' ) { |
| 173 | + var ua = navigator.userAgent; |
| 174 | + if ( /MSIE 6/i.test( ua ) ) { |
| 175 | + // IE6 has not font fallbacks |
| 176 | + return; |
| 177 | + } else if ( /MSIE 8/i.test( ua ) && /Windows NT 5.1/i.test( ua ) ) { |
| 178 | + // IE8 on XP has occasional gibberish bug |
| 179 | + return; |
| 180 | + } |
| 181 | + } |
| 182 | + |
171 | 183 | var config = []; |
172 | 184 | var languages = mw.webfonts.config.languages; |
173 | 185 | var requested = [mw.config.get( 'wgUserVariant' ), mw.config.get( 'wgContentLanguage' ), mw.config.get( 'wgUserLanguage' )]; |