Make sure primes are taken from the correct variant font (now that we have more than one to work with). Resolves issue #1251
This commit is contained in:
parent
8d4a15abc1
commit
bc360cd262
|
@ -1290,7 +1290,8 @@
|
||||||
|
|
||||||
SVGgetVariant: function () {
|
SVGgetVariant: function () {
|
||||||
var values = this.getValues("mathvariant","fontfamily","fontweight","fontstyle");
|
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
|
values.hasVariant = this.Get("mathvariant",true); // null if not explicitly specified
|
||||||
if (!values.hasVariant) {
|
if (!values.hasVariant) {
|
||||||
values.family = values.fontfamily;
|
values.family = values.fontfamily;
|
||||||
|
@ -1468,7 +1469,7 @@
|
||||||
// Primes must come from another font
|
// Primes must come from another font
|
||||||
//
|
//
|
||||||
if (isScript && this.data.join("").match(/['`"\u00B4\u2032-\u2037\u2057]/))
|
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
|
// Typeset contents
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user