Make mtextFontInherit take the math scaling factor into account (issue 826).

This commit is contained in:
Davide P. Cervone 2015-08-24 10:59:07 -04:00
parent 3100f10c4a
commit 5296f1111f

View File

@ -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");