Don't combine mathvariant and fontstyle or fontweight (Fred pointed out this isn't supposed to happen)
This commit is contained in:
parent
af2cd3476f
commit
266360e9d2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1728,6 +1728,7 @@
|
|||
return {FONTS:[], fonts:[], noRemap:true,
|
||||
defaultFont: {family:values.fontfamily, style:values.fontstyle, weight:values.fontweight}};
|
||||
}
|
||||
if (!this.mathvariant) {
|
||||
if (values.fontweight === "bold") {
|
||||
variant = {
|
||||
normal:MML.VARIANT.BOLD, italic:MML.VARIANT.BOLDITALIC,
|
||||
|
@ -1756,6 +1757,7 @@
|
|||
"sans-serif-bold-italic":MML.VARIANT.BOLDSANSSERIF
|
||||
}[variant]||variant;
|
||||
}
|
||||
}
|
||||
return HTMLCSS.FONTDATA.VARIANT[variant];
|
||||
}
|
||||
},{
|
||||
|
|
|
@ -1105,6 +1105,7 @@
|
|||
if (values.fontweight) {variant.font["font-weight"] = values.fontweight}
|
||||
return variant;
|
||||
}
|
||||
if (!this.mathvariant) {
|
||||
if (values.fontweight === "bold") {
|
||||
variant = {
|
||||
normal:MML.VARIANT.BOLD, italic:MML.VARIANT.BOLDITALIC,
|
||||
|
@ -1133,6 +1134,7 @@
|
|||
"sans-serif-bold-italic":MML.VARIANT.BOLDSANSSERIF
|
||||
}[variant]||variant;
|
||||
}
|
||||
}
|
||||
return SVG.FONTDATA.VARIANT[variant];
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user