version 1.1, 2006/05/17 22:23:23
|
version 1.2, 2007/10/09 21:29:28
|
Line 170 if (!jsMath.Box) {jsMath.Box = {}}
|
Line 170 if (!jsMath.Box) {jsMath.Box = {}}
|
if (!jsMath.Img) {jsMath.Img = {}} |
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) |
* into the mix (save offset data and image size) |
*/ |
*/ |
jsMath.Img.AddFont = function (size,def) { |
jsMath.Img.AddFont = function (size,def) { |
Line 235 if (!jsMath.Browser) {jsMath.Browser = {
|
Line 235 if (!jsMath.Browser) {jsMath.Browser = {
|
this.operaImageFonts = 1; |
this.operaImageFonts = 1; |
jsMath.Box.IMG = jsMath.Box.IMG_opera; |
jsMath.Box.IMG = jsMath.Box.IMG_opera; |
} else if (jsMath.browser == 'MSIE') { |
} else if (jsMath.browser == 'MSIE') { |
if (navigator.platform == 'MacPPC') { |
if (jsMath.platform == 'mac') { |
this.msieImgFontBBoxFix = '<span style="display:none">x</span>' |
this.msieImgFontBBoxFix = '<span style="display:none">x</span>' |
} else { |
} else { |
jsMath.Parser.prototype.oldTypeset = jsMath.Parser.prototype.Typeset; |
jsMath.Parser.prototype.oldTypeset = jsMath.Parser.prototype.Typeset; |
Line 250 if (!jsMath.Browser) {jsMath.Browser = {
|
Line 250 if (!jsMath.Browser) {jsMath.Browser = {
|
jsMath.version += "-sp1.0"; |
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) {jsMath.Parser = {}} |
if (!jsMath.Parser.prototype) {jsMath.Parser.prototype = {}} |
if (!jsMath.Parser.prototype) {jsMath.Parser.prototype = {}} |