From aba0f465eed2e942fe1236dced5569aab4ea8fb0 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 21 Aug 2016 15:08:54 -0400 Subject: [PATCH] Take the global scaling factor into account. --- unpacked/jax/output/CommonHTML/jax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index c9c91371c..3f65dd25c 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -1544,7 +1544,8 @@ if (values.fontsize && !this.mathsize) values.mathsize = values.fontsize; if (values.mathsize !== 1) scale *= CHTML.length2em(values.mathsize,1,1); var variant = this.CHTMLvariant; - if (variant && variant.style && variant.style["font-family"]) scale /= CHTML.scale; + if (variant && variant.style && variant.style["font-family"]) + scale *= (CHTML.config.scale/100)/CHTML.scale; this.CHTML.scale = scale; pscale = this.CHTML.rscale = scale/pscale; if (Math.abs(pscale-1) < .001) pscale = 1; if (node && pscale !== 1) node.style.fontSize = CHTML.Percent(pscale);