Index: jsmath/web/plugins/spriteImageFonts.js =================================================================== diff -u -r18ca7a80355adaa156105d80bd5a732e4e1e0d91 -rd1ff30c9bf023d99b27206b98b13ae0180f3de2b --- jsmath/web/plugins/spriteImageFonts.js (.../spriteImageFonts.js) (revision 18ca7a80355adaa156105d80bd5a732e4e1e0d91) +++ jsmath/web/plugins/spriteImageFonts.js (.../spriteImageFonts.js) (revision d1ff30c9bf023d99b27206b98b13ae0180f3de2b) @@ -170,7 +170,7 @@ if (!jsMath.Img) {jsMath.Img = {}} /* - * Called by the exta-font definition files to add an image font + * Called by the extra-font definition files to add an image font * into the mix (save offset data and image size) */ jsMath.Img.AddFont = function (size,def) { @@ -235,7 +235,7 @@ this.operaImageFonts = 1; jsMath.Box.IMG = jsMath.Box.IMG_opera; } else if (jsMath.browser == 'MSIE') { - if (navigator.platform == 'MacPPC') { + if (jsMath.platform == 'mac') { this.msieImgFontBBoxFix = 'x' } else { jsMath.Parser.prototype.oldTypeset = jsMath.Parser.prototype.Typeset; @@ -250,6 +250,14 @@ jsMath.version += "-sp1.0"; }; +if (!jsMath.Setup) {jsMath.Setup = {}} + jsMath.Setup.Fonts = function () { + for (var i = 0; i < jsMath.TeX.fam.length; i++) { + var name = jsMath.TeX.fam[i]; + if (name) {this.EncodeFont(name)} + } + jsMath.Img.Init(); + }; if (!jsMath.Parser) {jsMath.Parser = {}} if (!jsMath.Parser.prototype) {jsMath.Parser.prototype = {}}