www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bc360cd26241575b00b92ce7691c8cf70612f8d7
parent 8d4a15abc15c47cfd0a650d4770a54aff07cc8c5
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Tue,  1 Sep 2015 08:02:02 -0400

Make sure primes are taken from the correct variant font (now that we have more than one to work with). Resolves issue #1251

Diffstat:
Munpacked/jax/output/SVG/jax.js | 5+++--
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 //