fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

SizeFeature works for opticals with LuaLaTeX but not XeLaTeX

Open gerstorfer opened this issue 12 years ago • 0 comments

Setting SizeFeature to load different opticals of a font works with LuaLaTeX but not XeLaTeX.

Here is a MWE:

\documentclass{article}
\usepackage{fontspec}

\newfontfamily\fonta[SizeFeatures={{Size={5-120},Font=* Display}}]{Minion Pro}
\newfontfamily\fontb[SizeFeatures={{Size={5-120},Font=* Subhead}}]{Minion Pro}
\newfontfamily\fontc[SizeFeatures={{Size={5-120},Font=*}}]{Minion Pro}
\newfontfamily\fontd[SizeFeatures={{Size={5-120},Font=* Caption}}]{Minion Pro}

\begin{document}
\fontsize{12}{14}
\fonta Test aAbBcCdDeEfFgG (Display)\par
\fontb Test aAbBcCdDeEfFgG (Subhead)\par
\fontc Test aAbBcCdDeEfFgG (Normal)\par
\fontd Test aAbBcCdDeEfFgG (Caption)\par
\end{document}

LuaLaTeX produces this:

bildschirmfoto 2013-10-21 um 22 46 07

While XeLaTeX outputs that:

bildschirmfoto 2013-10-21 um 22 47 29

This was discussed on TeX.SE a while ago, but is apparently sill an issue.

gerstorfer avatar Oct 21 '13 20:10 gerstorfer