commit 936f85b537e35ebeefea789e0e47ee03fc9de7f0
parent 184e8860de5059c2e64d4d5ee0be98aad2c5437a
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 3 Sep 2015 09:36:11 -0400
Merge branch 'issue1251' into develop. Issue #1251.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -1290,7 +1290,8 @@
SVGgetVariant: function () {
var values = this.getValues("mathvariant","fontfamily","fontweight","fontstyle");
- var variant = values.mathvariant; if (this.variantForm) {variant = "-TeX-variant"}
+ var variant = values.mathvariant;
+ if (this.variantForm) variant = "-"+SVG.fontInUse+"-variant";
values.hasVariant = this.Get("mathvariant",true); // null if not explicitly specified
if (!values.hasVariant) {
values.family = values.fontfamily;
@@ -1468,7 +1469,7 @@
// Primes must come from another font
//
if (isScript && this.data.join("").match(/['`"\u00B4\u2032-\u2037\u2057]/))
- {variant = SVG.FONTDATA.VARIANT["-TeX-variant"]}
+ {variant = SVG.FONTDATA.VARIANT["-"+SVG.fontInUse+"-variant"]}
//
// Typeset contents
//