Make mtextFontInherit take the math scaling factor into account (issue 826).
This commit is contained in:
parent
3100f10c4a
commit
5296f1111f
|
@ -1880,7 +1880,7 @@
|
||||||
MML.mtext.Augment({
|
MML.mtext.Augment({
|
||||||
CHTMLgetVariant: function () {
|
CHTMLgetVariant: function () {
|
||||||
if (CHTML.config.mtextFontInherit || this.Parent().type === "merror") {
|
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,
|
var variant = {cache:{}, fonts:[], className:"MJXc-font-inherit", rscale:scale,
|
||||||
style:{"font-size":CHTML.Percent(scale)}};
|
style:{"font-size":CHTML.Percent(scale)}};
|
||||||
var name = this.Get("mathvariant");
|
var name = this.Get("mathvariant");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user