fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Character Variants don’t work with \addfontfeature in italic

Open georgd opened this issue 13 years ago • 4 comments

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}

georgd avatar Oct 29 '11 16:10 georgd

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.

PanderMusubi avatar Feb 16 '13 01:02 PanderMusubi

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}

PanderMusubi avatar Feb 16 '13 01:02 PanderMusubi

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}.

georgd avatar Feb 17 '13 09:02 georgd

This bug is still valid with harfbuzz-based xetex!

georgd avatar Jul 18 '13 22:07 georgd