Use web-fonts by default for unknown browsers. Addresses issue #317.
This commit is contained in:
parent
be28147f2d
commit
beff612f53
|
@ -2334,9 +2334,12 @@ MathJax.Hub.Startup = {
|
||||||
isMac: (navigator.platform.substr(0,3) === "Mac"),
|
isMac: (navigator.platform.substr(0,3) === "Mac"),
|
||||||
isPC: (navigator.platform.substr(0,3) === "Win"),
|
isPC: (navigator.platform.substr(0,3) === "Win"),
|
||||||
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
|
isMSIE: (window.ActiveXObject != null && window.clipboardData != null),
|
||||||
isFirefox: (window.netscape != null && document.ATTRIBUTE_NODE != null && !window.opera),
|
/*
|
||||||
|
isFirefox: ((window.netscape != null || window.mozPaintCount != null) &&
|
||||||
|
document.ATTRIBUTE_NODE != null && !window.opera),
|
||||||
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null &&
|
isSafari: (navigator.userAgent.match(/ (Apple)?WebKit\//) != null &&
|
||||||
(!window.chrome || window.chrome.loadTimes == null)),
|
(!window.chrome || window.chrome.loadTimes == null)),
|
||||||
|
*/
|
||||||
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
|
isChrome: (window.chrome != null && window.chrome.loadTimes != null),
|
||||||
isOpera: (window.opera != null && window.opera.version != null),
|
isOpera: (window.opera != null && window.opera.version != null),
|
||||||
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),
|
isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"),
|
||||||
|
|
|
@ -294,6 +294,7 @@
|
||||||
|
|
||||||
Font: null, // created by Config() below
|
Font: null, // created by Config() below
|
||||||
webFontDefault: "MathJax_Blank",
|
webFontDefault: "MathJax_Blank",
|
||||||
|
allowWebFonts: "otf", // assume browser can use OTF web fonts
|
||||||
|
|
||||||
Config: function () {
|
Config: function () {
|
||||||
if (!this.require) {this.require = []}
|
if (!this.require) {this.require = []}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user