commit 87abfa1085080e518ee9b2ba20fa480a7c7d3935
parent e971f875d4ead407c0bba87df350ff7e28e2ca3e
Author: Davide P. Cervone <dpvc@union.edu>
Date: Tue, 17 Mar 2015 12:27:14 -0400
Use removedStyles when checking for font-based variant.
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
@@ -1249,13 +1249,13 @@
},
CHTMLgetVariant: function () {
- var values = this.getValues("mathvariant","fontfamily","fontweight","fontstyle");
+ var values = this.getValues("mathvariant","fontfamily","fontweight","fontstyle"), style;
values.hasVariant = this.Get("mathvariant",true); // null if not explicitly specified
- if (this.style) {
- var span = HTML.Element("span"); span.style.cssText = this.style;
- if (span.style.fontFamily) values.family = span.style.fontFamily;
- if (span.style.fontWeight) values.weight = span.style.fontWeight;
- if (span.style.fontStyle) values.style = span.style.fontStyle;
+ if (this.removedStyles) {
+ style = this.removedStyles;
+ if (style.fontFamily) values.family = style.fontFamily;
+ if (style.fontWeight) values.weight = style.fontWeight;
+ if (style.fontStyle) values.style = style.fontStyle;
}
if (!values.hasVariant) {
if (values.fontfamily) values.family = values.fontfamily;