diff --git a/test/index-images.html b/test/index-images.html index b4a69218b..4388b3204 100644 --- a/test/index-images.html +++ b/test/index-images.html @@ -97,30 +97,6 @@ installed the MathJax web fonts correctly. Follow the steps in the installation instructions.

-If you obtained MathJax via an archive (.zip) file, the fonts are included -and should not need any special installation. If you obtained MathJax via -svn, the distribution includes a fonts.zip file that you will -need to unpack before the image fonts will work. Once unpacked, you -should have a directory with the following hierarchy: -

-    mathjax/
-      ...
-      fonts/
-        HTML-CSS/
-          TeX/
-            eot/
-              ...
-            imagedata.js
-            png/
-              ...
-            otf/
-              ...
-            svg/
-              ...
-      fonts.zip
-      ...
-
- diff --git a/test/index.html b/test/index.html index a7b27c98b..68d7540f8 100644 --- a/test/index.html +++ b/test/index.html @@ -19,21 +19,20 @@ jax: ["input/TeX","output/HTML-CSS"], "HTML-CSS": { availableFonts:[], - styles: {".MathJax_Preview": {visibility: "hidden"}}, - Augment: { - Font: { - loadError: function (font) { - MathJax.Message.Set("Can't load web font TeX/"+font.directory,null,2000); - document.getElementById("noWebFont").style.display = ""; - }, - firefoxFontError: function (font) { - MathJax.Message.Set("Firefox can't load web fonts from a remote host",null,3000); - document.getElementById("ffWebFont").style.display = ""; - } - } - } + styles: {".MathJax_Preview": {visibility: "hidden"}} } }); + MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { + var FONT = MathJax.OutputJax["HTML-CSS"].Font; + FONT.loadError = function (font) { + MathJax.Message.Set("Can't load web font TeX/"+font.directory,null,2000); + document.getElementById("noWebFont").style.display = ""; + }; + FONT.firefoxFontError = function (font) { + MathJax.Message.Set("Firefox can't load web fonts from a remote host",null,3000); + document.getElementById("ffWebFont").style.display = ""; + }; + }); (function (HUB) { @@ -59,11 +58,7 @@ MathJax.Hub.Register.StartupHook("End",function () { var HTMLCSS = MathJax.OutputJax["HTML-CSS"]; - var MAIN = HTMLCSS.FONTDATA.FONTS["MathJax_Main"]; - if (MAIN.version < 2) { - document.getElementById("version").innerHTML = MAIN.version; - document.getElementById("webfonts").style.display=""; - } else if (HTMLCSS.imgFonts) { + if (HTMLCSS.imgFonts) { alert("The browser you are using does not seem to support web-based " + "fonts, so we can't test the MathJax web fonts with this browser " + "(image fonts have been used instead)\n\n" + @@ -85,12 +80,6 @@ If your browser supports JavaScript, be sure it is enabled.
- -

MathJax Test Page

If you see typeset mathematics below, then MathJax is working. If you see @@ -119,35 +108,12 @@ MathJax is not working! -

- - - -

@@ -158,8 +124,8 @@ above: the radial will be out of place.