commit 5296f1111f448736596f6a05b26caa0e77674e2f
parent 3100f10c4a5ebf25af5cee51685285d9e4312e39
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 24 Aug 2015 10:59:07 -0400
Make mtextFontInherit take the math scaling factor into account (issue 826).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");