Merge branch 'node-issue3' into develop. Issue mathjax/MathJax-node#3.

This commit is contained in:
Davide P. Cervone 2014-09-04 05:57:14 -04:00
commit 13b16f9b26

View File

@ -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;}
}