From beff612f5343abfb59ec684631337ba39429f0b5 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 24 Sep 2012 20:19:11 -0400 Subject: [PATCH] Use web-fonts by default for unknown browsers. Addresses issue #317. --- unpacked/MathJax.js | 5 ++++- unpacked/jax/output/HTML-CSS/jax.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index e297dd58b..7ee2e3d5d 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -2334,9 +2334,12 @@ MathJax.Hub.Startup = { isMac: (navigator.platform.substr(0,3) === "Mac"), isPC: (navigator.platform.substr(0,3) === "Win"), 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 && (!window.chrome || window.chrome.loadTimes == null)), +*/ isChrome: (window.chrome != null && window.chrome.loadTimes != null), isOpera: (window.opera != null && window.opera.version != null), isKonqueror: (window.hasOwnProperty && window.hasOwnProperty("konqueror") && navigator.vendor == "KDE"), diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 37c7da6b3..47354a838 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -292,8 +292,9 @@ hideProcessedMath: true, // use display:none until all math is processed - Font: null, // created by Config() below + Font: null, // created by Config() below webFontDefault: "MathJax_Blank", + allowWebFonts: "otf", // assume browser can use OTF web fonts Config: function () { if (!this.require) {this.require = []}