www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4d4db67ad0cf2714a6d39c8e7a603a25939cf225
parent ff8e0528063a195aabd4dbba865c06e581c92e5a
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon,  3 Mar 2014 18:33:12 -0500

Make testCollection properly mark STIX fonts as not having the style characters, and fix testing for STIX or MathJax at beginning of font names.

Diffstat:
Munpacked/jax/output/HTML-CSS/jax.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js @@ -74,6 +74,7 @@ var font = {testString: "() {} []"}; font.family = {TeX:"MathJax_Size1", STIX:"STIXSizeOneSym"}[name] || name.replace(/-(Math)?/,"")+"MathJax_Size1"; + if (name === "STIX") {font.noStyleChar = true} return this.testFont(font); }, @@ -92,7 +93,7 @@ // This should be removed when the web fonts are fixed. FIXME // var family = font.familyFixed || font.family; - if (!family.match(/$(STIX|MathJax)|'/)) { + if (!family.match(/^(STIX|MathJax)|'/)) { family = family.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2") + "','" + family + "-"; if (font.weight) {family += "Bold"}; if (font.style) {family += "Italic"} if (!font.weight && !font.style) {family += "Regular"}