Skip to content

Commit aba0f46

Browse files
committed
Take the global scaling factor into account.
1 parent fc47ec0 commit aba0f46

File tree

1 file changed

+2
-1
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+2
-1
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,8 @@
15441544
if (values.fontsize && !this.mathsize) values.mathsize = values.fontsize;
15451545
if (values.mathsize !== 1) scale *= CHTML.length2em(values.mathsize,1,1);
15461546
var variant = this.CHTMLvariant;
1547-
if (variant && variant.style && variant.style["font-family"]) scale /= CHTML.scale;
1547+
if (variant && variant.style && variant.style["font-family"])
1548+
scale *= (CHTML.config.scale/100)/CHTML.scale;
15481549
this.CHTML.scale = scale; pscale = this.CHTML.rscale = scale/pscale;
15491550
if (Math.abs(pscale-1) < .001) pscale = 1;
15501551
if (node && pscale !== 1) node.style.fontSize = CHTML.Percent(pscale);

0 commit comments

Comments
 (0)