commit 13b16f9b26df1298110130bfa32dfeed2b07de26
parent d74208ef1f60c73e70984bc3182f1784d5a0133b
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 4 Sep 2014 05:57:14 -0400
Merge branch 'node-issue3' into develop. Issue mathjax/MathJax-node#3.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -605,7 +605,7 @@
}
font = this.lookupChar(variant,n); c = font[n];
if (c) {
- if (c[5] && c[5].space) {svg.w += c[2]} else {
+ if ((c[5] && c[5].space) || (c[5] === "" && c[0]+c[1] === 0)) {svg.w += c[2]} else {
c = [scale,font.id+"-"+n.toString(16).toUpperCase()].concat(c);
svg.Add(BBOX.GLYPH.apply(BBOX,c),svg.w,0);
}
@@ -1040,7 +1040,7 @@
if (!cache || !GLYPH.glyphs[id]) {
def = {"stroke-width":t};
if (cache) {def.id = id} else if (transform) {def.transform = transform}
- if (p !== "") {def.d = "M"+p+"Z"}
+ def.d = (p ? "M"+p+"Z" : "");
this.SUPER(arguments).Init.call(this,def);
if (cache) {GLYPH.defs.appendChild(this.element); GLYPH.glyphs[id] = true;}
}