www

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

commit ffd71440e67a8b08e9b339c99a2d1c82d26cd68e
parent 8ddeed3a3c961c9d901136d00149b2475ca99d6e
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu,  4 Sep 2014 05:55:52 -0400

Merge branch 'issue898' into develop.  Issue #898.

Diffstat:
Munpacked/jax/output/HTML-CSS/fonts/STIX/fontdata.js | 16++++++++++++++++
Munpacked/jax/output/SVG/fonts/TeX/fontdata.js | 10++++++++++
Munpacked/jax/output/SVG/jax.js | 2++
3 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata.js b/unpacked/jax/output/HTML-CSS/fonts/STIX/fontdata.js @@ -1515,6 +1515,22 @@ HTMLCSS.FONTDATA.FONTS['STIXVariants'][0x20][5] = {rfix:275}; // fix error in character width }); + // + // Add some spacing characters (more will come later) + // + MathJax.Hub.Insert(HTMLCSS.FONTDATA.FONTS['STIXGeneral'],{ + 0x2000: [0,0,500,0,0,{space:1}], // en quad + 0x2001: [0,0,1000,0,0,{space:1}], // em quad + 0x2002: [0,0,500,0,0,{space:1}], // en space + 0x2003: [0,0,1000,0,0,{space:1}], // em space + 0x2004: [0,0,333,0,0,{space:1}], // 3-per-em space + 0x2005: [0,0,250,0,0,{space:1}], // 4-per-em space + 0x2006: [0,0,167,0,0,{space:1}], // 6-per-em space + 0x2009: [0,0,167,0,0,{space:1}], // thin space + 0x200A: [0,0,83,0,0,{space:1}], // hair space + 0x200B: [0,0,0,0,0,{space:1}] // zero-width space + }); + MathJax.Hub.Browser.Select({ MSIE: function (browser) { if (!browser.versionAtLeast("8.0") || document.documentMode < 8) { diff --git a/unpacked/jax/output/SVG/fonts/TeX/fontdata.js b/unpacked/jax/output/SVG/fonts/TeX/fontdata.js @@ -1565,6 +1565,16 @@ // Add some spacing characters (more will come later) // MathJax.Hub.Insert(SVG.FONTDATA.FONTS['MathJax_Main'],{ + 0x2000: [0,0,500,0,0,{space:1}], // en quad + 0x2001: [0,0,1000,0,0,{space:1}], // em quad + 0x2002: [0,0,500,0,0,{space:1}], // en space + 0x2003: [0,0,1000,0,0,{space:1}], // em space + 0x2004: [0,0,333,0,0,{space:1}], // 3-per-em space + 0x2005: [0,0,250,0,0,{space:1}], // 4-per-em space + 0x2006: [0,0,167,0,0,{space:1}], // 6-per-em space + 0x2009: [0,0,167,0,0,{space:1}], // thin space + 0x200A: [0,0,83,0,0,{space:1}], // hair space + 0x200B: [0,0,0,0,0,{space:1}], // zero-width space 0xEEE0: [0,0,-575,0,0,{space:1}], 0xEEE1: [0,0,-300,0,0,{space:1}], 0xEEE8: [0,0,25,0,0,{space:1}] diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js @@ -1006,6 +1006,8 @@ type: "text", removeable: false, Init: function (scale,text,def) { if (!def) {def = {}}; def.stroke = "none"; + if (def["font-style"] === "") delete def["font-style"]; + if (def["font-weight"] === "") delete def["font-weight"]; this.SUPER(arguments).Init.call(this,def); SVG.addText(this.element,text); SVG.textSVG.appendChild(this.element);