From 65cc50ac5cfe18c1dedbf0437bc4b5413e7dbaa9 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 13 Jan 2014 15:49:16 -0500 Subject: [PATCH] Fixed font name table to work on Windows as well as Macs with the new web fonts installed locally --- unpacked/jax/output/HTML-CSS/jax.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index ac2098515..84231c98c 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -42,12 +42,19 @@ FontInfo: { STIX: {family: "STIXSizeOneSym", testString: "() {} []"}, TeX: {family: "MathJax_Size1", testString: "() {} []"}, - "STIX-Web": {family: "STIXMathJax_Size1-Regular", testString: "() {} []"}, - "Asana-Math": {family: "AsanaMathJax_Size1-Regular", testString: "() {} []"}, - "Gyre-Pagella": {family: "GyrePagellaMathJax_Size1-Regular", testString: "() {} []"}, - "Gyre-Termes": {family: "GyreTermesMathJax_Size1-Regular", testString: "() {} []"}, - "Latin-Modern": {family: "LatinModernMathJax_Size1-Regular", testString: "() {} []"}, - "Neo-Euler": {family: "NeoEulerMathJax_Size1-Regular'", testString: "() {} []"} + // + // These are the new web fonts. The strange use of single quotes is because the + // testing routine adds quotes at the beginning and ending, so for this list of + // names, we need to take those into account. We need a list because the names are + // not handled consistently between Mac and Windows in the font data, as they are + // in the TeX and original STIX fonts (sigh). + // + "STIX-Web": {family: "STIX MathJax Size1','STIXMathJax_Size1-Regular", testString: "() {} []"}, + "Asana-Math": {family: "Asana MathJax Size1','AsanaMathJax_Size1-Regular'", testString: "() {} []"}, + "Gyre-Pagella": {family: "Gyre Pagella MathJax Size1','GyrePagellaMathJax_Size1-Regular", testString: "() {} []"}, + "Gyre-Termes": {family: "Gyre Termes MathJax Size1','GyreTermesMathJax_Size1-Regular", testString: "() {} []"}, + "Latin-Modern": {family: "Latin Modern MathJax Size1','LatinModernMathJax_Size1-Regular", testString: "() {} []"}, + "Neo-Euler": {family: "Neo Euler MathJax Size1','NeoEulerMathJax_Size1-Regular", testString: "() {} []"} }, comparisonFont: ["sans-serif","monospace","script","Times","Courier","Arial","Helvetica"], testSize: ["40px","50px","60px","30px","20px"],