fontspec
fontspec copied to clipboard
Character Variants don’t work with \addfontfeature in italic
In the following example the two groups should give the same results but they don’t:
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\begin{document}
\textit{\addfontfeature{CharacterVariant=5:0}very}\\
\textit{\addfontfeature{CharacterVariant=5:1}very}\\
\textit{\addfontfeature{CharacterVariant=5:2}very}\\ \textit{\addfontfeature{CharacterVariant=5:3}very}\\
\textit{\addfontfeature{CharacterVariant={4,5:3}}\& very}\\
\fontspec{EB Garamond Italic} very\\
\fontspec[CharacterVariant=5]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:0]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:1]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:2]{EB Garamond Italic}very\\
\fontspec[CharacterVariant=5:3]{EB Garamond Italic}very\\
\fontspec[CharacterVariant={4,5:3}]{EB Garamond Italic}\& very
\end{document}
For me, \fontspec{EB Garamond Italic} results in a font-not-found althoud I can use the font and its italics via \fontspec{EB Garamond} Also the character variations do not work with TeX Live 2012 with all updates. I simply keep seeing the default glyph.
Please add an example for
VC11: Variants for the numeral one: some publishers prefer a numeral one that’s clearly different from small cap i: I123 vs. II23
From the feature documentation of EB Garamond
\addfontfeature{CharacterVariant=11:1}
When I introduced the caption font, I changed the font names to include their design size. Thus the font now should be called with \fontspec{EB Garamond 12 Italic}.
This bug is still valid with harfbuzz-based xetex!