From 5296f1111f448736596f6a05b26caa0e77674e2f Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 24 Aug 2015 10:59:07 -0400 Subject: [PATCH] Make mtextFontInherit take the math scaling factor into account (issue 826). --- unpacked/jax/output/CommonHTML/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 08b79e3d0..db89cd099 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -1880,7 +1880,7 @@ MML.mtext.Augment({ CHTMLgetVariant: function () { if (CHTML.config.mtextFontInherit || this.Parent().type === "merror") { - var scale = 1/CHTML.scale; + var scale = (CHTML.config.scale/100)/CHTML.scale; var variant = {cache:{}, fonts:[], className:"MJXc-font-inherit", rscale:scale, style:{"font-size":CHTML.Percent(scale)}}; var name = this.Get("mathvariant");