Add WOFF fonts and use them in browsers that support them; fix error in font reporting in About box
This commit is contained in:
parent
705bfe74e6
commit
afb4257a83
File diff suppressed because one or more lines are too long
BIN
fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff
Normal file
BIN
fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -603,7 +603,7 @@
|
||||||
MENU.About.GetJax(jax,MathJax.Extension,"Extension",true);
|
MENU.About.GetJax(jax,MathJax.Extension,"Extension",true);
|
||||||
jax.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}],["center",{},[
|
jax.push(["div",{style:{"border-top":"groove 2px",margin:".25em 0"}}],["center",{},[
|
||||||
HUB.Browser + " v"+HUB.Browser.version +
|
HUB.Browser + " v"+HUB.Browser.version +
|
||||||
(HTMLCSS.webFonts ? " \u2014 "+HTMLCSS.allowWebFonts+" fonts" : "")
|
(HTMLCSS.webFonts && !HTMLCSS.imgFonts ? " \u2014 "+HTMLCSS.allowWebFonts+" fonts" : "")
|
||||||
]]);
|
]]);
|
||||||
MENU.About.div = MENU.Background(MENU.About);
|
MENU.About.div = MENU.Background(MENU.About);
|
||||||
var about = HTML.addElement(MENU.About.div,"div",{
|
var about = HTML.addElement(MENU.About.div,"div",{
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2011 Design Science, Inc.
|
* Copyright (c) 2009-2012 Design Science, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -176,7 +176,11 @@
|
||||||
"font-family": FONT.family,
|
"font-family": FONT.family,
|
||||||
src: "url('"+dir+"/"+fullname+"')"
|
src: "url('"+dir+"/"+fullname+"')"
|
||||||
};
|
};
|
||||||
if (type === "svg") def.src += " format('svg')";
|
if (type === "otf") {
|
||||||
|
def.src += " format('opentype')";
|
||||||
|
dir = AJAX.fileURL(HTMLCSS.webfontDir+"/woff"); // add woff fonts as well
|
||||||
|
def.src = "url('"+dir+"/"+fullname.replace(/otf$/,"woff")+"') format('woff'), "+def.src;
|
||||||
|
} else if (type !== "eot") {def.src += " format('"+type+"')"}
|
||||||
if (!(HTMLCSS.FontFaceBug && FONT.isWebFont)) {
|
if (!(HTMLCSS.FontFaceBug && FONT.isWebFont)) {
|
||||||
if (name.match(/-bold/)) {def["font-weight"] = "bold"}
|
if (name.match(/-bold/)) {def["font-weight"] = "bold"}
|
||||||
if (name.match(/-italic/)) {def["font-style"] = "italic"}
|
if (name.match(/-italic/)) {def["font-style"] = "italic"}
|
||||||
|
@ -2632,7 +2636,7 @@
|
||||||
zeroWidthBug: (mode < 8),
|
zeroWidthBug: (mode < 8),
|
||||||
FontFaceBug: true,
|
FontFaceBug: true,
|
||||||
msieFontCSSBug: browser.isIE9,
|
msieFontCSSBug: browser.isIE9,
|
||||||
allowWebFonts: "eot"
|
allowWebFonts: (mode >= 9 ? "woff" : "eot")
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user