Why do stylistic sets break in script-style in XeLaTeX?
up vote
3
down vote
favorite
documentclass{article}
usepackage{amsmath, amsfonts, amssymb}%
usepackage{unicode-math}
setmainfont{STIX Two Text}
setmathfont{STIX Two Math}[StylisticSet={02}]
begin{document}
$g^g_{g^g}$
end{document}
when we chose the StylisticSet={02}, the 'g' & 'z' shape of the superscript and subscript has not changed. How to control it?

unicode-math
add a comment |
up vote
3
down vote
favorite
documentclass{article}
usepackage{amsmath, amsfonts, amssymb}%
usepackage{unicode-math}
setmainfont{STIX Two Text}
setmathfont{STIX Two Math}[StylisticSet={02}]
begin{document}
$g^g_{g^g}$
end{document}
when we chose the StylisticSet={02}, the 'g' & 'z' shape of the superscript and subscript has not changed. How to control it?

unicode-math
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
1
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
1
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
documentclass{article}
usepackage{amsmath, amsfonts, amssymb}%
usepackage{unicode-math}
setmainfont{STIX Two Text}
setmathfont{STIX Two Math}[StylisticSet={02}]
begin{document}
$g^g_{g^g}$
end{document}
when we chose the StylisticSet={02}, the 'g' & 'z' shape of the superscript and subscript has not changed. How to control it?

unicode-math
documentclass{article}
usepackage{amsmath, amsfonts, amssymb}%
usepackage{unicode-math}
setmainfont{STIX Two Text}
setmathfont{STIX Two Math}[StylisticSet={02}]
begin{document}
$g^g_{g^g}$
end{document}
when we chose the StylisticSet={02}, the 'g' & 'z' shape of the superscript and subscript has not changed. How to control it?

unicode-math
unicode-math
edited Dec 6 at 15:39
Davislor
4,4321024
4,4321024
asked Dec 6 at 11:34
poorich
1878
1878
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
1
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
1
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday
add a comment |
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
1
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
1
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
1
1
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
1
1
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
This looks like a bug to me, and I haven’t tried to determine whether it’s in unicode-math or in XeTeX. Here is a temporary workaround:
setmathfont{STIX Two Math}[StylisticSet=2,
script-features={},
sscript-features={}]

Setting StylisticSet=2 inside script-features does not currently work. You might limit the scope of the workaround by loading it with range=. as in:
setmathfont{STIX Two Math}[StylisticSet=2]
setmathfont{STIX Two Math}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
Setting the range to only the individual letters that need it does not work, either.
Since only XeTeX currently needs it, you might wrap it in ifXeTeX from the iftex package. That would give you:
documentclass[varwidth, preview]{standalone}
usepackage{iftex}
usepackage{amsmath}
usepackage{unicode-math}
defaultfontfeatures{ Scale = MatchLowercase }
setmainfont{STIX2Text}[
Scale = 1.0 ,
Ligatures = {Common, TeX},
UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
Extension = .otf ]
setmathfont{STIX2Math.otf}[StylisticSet=2]
ifXeTeX
setmathfont{STIX2Math.otf}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
fi% XeTeX
begin{document}
$g^g_{g^g}$ $z^z_{z^z}$ $alpha^alpha_{alpha^alpha}$
end{document}
I don't think that it is a good idea to disable the script features. Try e.g.$x^{2a+b^2}$with and without them.
– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?
– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463500%2fwhy-do-stylistic-sets-break-in-script-style-in-xelatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
This looks like a bug to me, and I haven’t tried to determine whether it’s in unicode-math or in XeTeX. Here is a temporary workaround:
setmathfont{STIX Two Math}[StylisticSet=2,
script-features={},
sscript-features={}]

Setting StylisticSet=2 inside script-features does not currently work. You might limit the scope of the workaround by loading it with range=. as in:
setmathfont{STIX Two Math}[StylisticSet=2]
setmathfont{STIX Two Math}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
Setting the range to only the individual letters that need it does not work, either.
Since only XeTeX currently needs it, you might wrap it in ifXeTeX from the iftex package. That would give you:
documentclass[varwidth, preview]{standalone}
usepackage{iftex}
usepackage{amsmath}
usepackage{unicode-math}
defaultfontfeatures{ Scale = MatchLowercase }
setmainfont{STIX2Text}[
Scale = 1.0 ,
Ligatures = {Common, TeX},
UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
Extension = .otf ]
setmathfont{STIX2Math.otf}[StylisticSet=2]
ifXeTeX
setmathfont{STIX2Math.otf}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
fi% XeTeX
begin{document}
$g^g_{g^g}$ $z^z_{z^z}$ $alpha^alpha_{alpha^alpha}$
end{document}
I don't think that it is a good idea to disable the script features. Try e.g.$x^{2a+b^2}$with and without them.
– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?
– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
add a comment |
up vote
3
down vote
This looks like a bug to me, and I haven’t tried to determine whether it’s in unicode-math or in XeTeX. Here is a temporary workaround:
setmathfont{STIX Two Math}[StylisticSet=2,
script-features={},
sscript-features={}]

Setting StylisticSet=2 inside script-features does not currently work. You might limit the scope of the workaround by loading it with range=. as in:
setmathfont{STIX Two Math}[StylisticSet=2]
setmathfont{STIX Two Math}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
Setting the range to only the individual letters that need it does not work, either.
Since only XeTeX currently needs it, you might wrap it in ifXeTeX from the iftex package. That would give you:
documentclass[varwidth, preview]{standalone}
usepackage{iftex}
usepackage{amsmath}
usepackage{unicode-math}
defaultfontfeatures{ Scale = MatchLowercase }
setmainfont{STIX2Text}[
Scale = 1.0 ,
Ligatures = {Common, TeX},
UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
Extension = .otf ]
setmathfont{STIX2Math.otf}[StylisticSet=2]
ifXeTeX
setmathfont{STIX2Math.otf}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
fi% XeTeX
begin{document}
$g^g_{g^g}$ $z^z_{z^z}$ $alpha^alpha_{alpha^alpha}$
end{document}
I don't think that it is a good idea to disable the script features. Try e.g.$x^{2a+b^2}$with and without them.
– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?
– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
add a comment |
up vote
3
down vote
up vote
3
down vote
This looks like a bug to me, and I haven’t tried to determine whether it’s in unicode-math or in XeTeX. Here is a temporary workaround:
setmathfont{STIX Two Math}[StylisticSet=2,
script-features={},
sscript-features={}]

Setting StylisticSet=2 inside script-features does not currently work. You might limit the scope of the workaround by loading it with range=. as in:
setmathfont{STIX Two Math}[StylisticSet=2]
setmathfont{STIX Two Math}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
Setting the range to only the individual letters that need it does not work, either.
Since only XeTeX currently needs it, you might wrap it in ifXeTeX from the iftex package. That would give you:
documentclass[varwidth, preview]{standalone}
usepackage{iftex}
usepackage{amsmath}
usepackage{unicode-math}
defaultfontfeatures{ Scale = MatchLowercase }
setmainfont{STIX2Text}[
Scale = 1.0 ,
Ligatures = {Common, TeX},
UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
Extension = .otf ]
setmathfont{STIX2Math.otf}[StylisticSet=2]
ifXeTeX
setmathfont{STIX2Math.otf}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
fi% XeTeX
begin{document}
$g^g_{g^g}$ $z^z_{z^z}$ $alpha^alpha_{alpha^alpha}$
end{document}
This looks like a bug to me, and I haven’t tried to determine whether it’s in unicode-math or in XeTeX. Here is a temporary workaround:
setmathfont{STIX Two Math}[StylisticSet=2,
script-features={},
sscript-features={}]

Setting StylisticSet=2 inside script-features does not currently work. You might limit the scope of the workaround by loading it with range=. as in:
setmathfont{STIX Two Math}[StylisticSet=2]
setmathfont{STIX Two Math}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
Setting the range to only the individual letters that need it does not work, either.
Since only XeTeX currently needs it, you might wrap it in ifXeTeX from the iftex package. That would give you:
documentclass[varwidth, preview]{standalone}
usepackage{iftex}
usepackage{amsmath}
usepackage{unicode-math}
defaultfontfeatures{ Scale = MatchLowercase }
setmainfont{STIX2Text}[
Scale = 1.0 ,
Ligatures = {Common, TeX},
UprightFont = *-Regular ,
BoldFont = *-Bold ,
ItalicFont = *-Italic ,
BoldItalicFont = *-BoldItalic ,
Extension = .otf ]
setmathfont{STIX2Math.otf}[StylisticSet=2]
ifXeTeX
setmathfont{STIX2Math.otf}[StylisticSet=2,
range=it/{latin},
script-features={},
sscript-features={}]
fi% XeTeX
begin{document}
$g^g_{g^g}$ $z^z_{z^z}$ $alpha^alpha_{alpha^alpha}$
end{document}
edited Dec 7 at 0:28
answered Dec 6 at 15:21
Davislor
4,4321024
4,4321024
I don't think that it is a good idea to disable the script features. Try e.g.$x^{2a+b^2}$with and without them.
– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?
– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
add a comment |
I don't think that it is a good idea to disable the script features. Try e.g.$x^{2a+b^2}$with and without them.
– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?
– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
I don't think that it is a good idea to disable the script features. Try e.g.
$x^{2a+b^2}$ with and without them.– Ulrike Fischer
Dec 6 at 15:44
I don't think that it is a good idea to disable the script features. Try e.g.
$x^{2a+b^2}$ with and without them.– Ulrike Fischer
Dec 6 at 15:44
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of
2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?– Davislor
Dec 6 at 16:20
@UlrikeFischer I agree that it’s suboptimal, but that’s the workaround I found. The second workaround at least preserves the script features of
2, capitals and the Greek letters. Do you have a better one? Other than using LuaLaTeX?– Davislor
Dec 6 at 16:20
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
$f_j$ under first method has changed, they are so close to the ground, this is an unexpected impact.
– poorich
Dec 6 at 21:02
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
@poorich Are you able to use LuaLaTeX for the time being?
– Davislor
Dec 7 at 0:09
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463500%2fwhy-do-stylistic-sets-break-in-script-style-in-xelatex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am unable to reproduce the issue you've encountered on my up-to-date MacTeX2018 distribution under LuaLaTeX. I.e., I get the swashy z and the one-storey g in text, script, and scriptscript mode. Please tell us which document class you employ, which TeX engine you employ, and which version of the Stix Two fonts you employ.
– Mico
Dec 6 at 13:21
1
It works with lualatex but fails with xelatex.
– Ulrike Fischer
Dec 6 at 13:55
1
It probably depends on the order of the feature lookups in the font, if ssty (activated by default for script and scriptscript fonts) precedes ss02 then ss02 will have no effect. Checking the font, this is indeed the case, so I think the issue should be reported in github.com/stipub/stixfonts/issues.
– Khaled Hosny
Dec 6 at 17:13
It's the same issue as tex.stackexchange.com/q/442046/82731 and github.com/wspr/unicode-math/issues/484 .
– Zeping Lee
yesterday