我有一个 MWE,主要来源于这个答案:
\documentclass{article}
\usepackage{fontspec}
\setmainfont[
UprightFeatures={
SizeFeatures={
{Size={-8.4},Font=MinionPro-Capt},
{Size={8.4-13},Font=MinionPro-Regular},
{Size={13-19.9},Font=MinionPro-Subh},
{Size={19.9-},Font=MinionPro-Disp}
},
},
BoldFeatures={
SizeFeatures={
{Size={-8.4},Font=MinionPro-BoldCapt},
{Size={8.4-13},Font=MinionPro-Bold},
{Size={13-19.9},Font=MinionPro-BoldSubh},
{Size={19.9-},Font=MinionPro-BoldDisp}
},
},
ItalicFeatures={
SizeFeatures={
{Size={-8.4},Font=MinionPro-ItCapt},
{Size={8.4-13},Font=MinionPro-It},
{Size={13-19.9},Font=MinionPro-ItSubh},
{Size={19.9-},Font=MinionPro-ItDisp}
},
},
BoldItalicFeatures={
SizeFeatures={
{Size={-8.4},Font=MinionPro-BoldItCapt},
{Size={8.4-13},Font=MinionPro-BoldIt},
{Size={13-19.9},Font=MinionPro-BoldItSubh},
{Size={19.9-},Font=MinionPro-BoldItDisp}
},
},
Ligatures = {Required, Common, Contextual, TeX},
Numbers = {OldStyle, Proportional},
RawFeature = {expansion = default},
UprightFeatures = {RawFeature = {protrusion = mnr}},
BoldFeatures = {RawFeature = {protrusion = mnrb}},
ItalicFeatures = {RawFeature = {protrusion = mni}},
BoldItalicFeatures = {RawFeature = {protrusion = mnib}}
]{Minion Pro}
\begin{document}
\section{What the heck is going on?}
\end{document}
正如图片所清楚地询问的那样,发生了什么事,我该如何解决?我有一个 Adobe Font Folio 的 Minion Pro 商业许可版本,并且该pdflatex
软件包MinionPro
运行良好。
XeTeX 还抛出了几十个警告:
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (rlig) not available for font
(fontspec) 'Minion Pro' with script 'CustomDefault' and
(fontspec) language 'Default'.
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (clig) not available for font
(fontspec) 'Minion Pro' with script 'CustomDefault' and
(fontspec) language 'Default'.
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (rlig) not available for font
(fontspec) 'MinionPro-Capt' with script 'CustomDefault' and
(fontspec) language 'Default'.
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (liga) not available for font
(fontspec) 'MinionPro-Capt' with script 'CustomDefault' and
(fontspec) language 'Default'.
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (clig) not available for font
(fontspec) 'MinionPro-Capt' with script 'CustomDefault' and
(fontspec) language 'Default'.
Package fontspec Warning: OpenType feature 'Numbers=Lowercase' (onum) not
(fontspec) available for font 'MinionPro-Capt' with script
(fontspec) 'CustomDefault' and language 'Default'.
Package fontspec Warning: OpenType feature 'Numbers=Lowercase' (pnum) not
(fontspec) available for font 'MinionPro-Capt' with script
(fontspec) 'CustomDefault' and language 'Default'.
Package fontspec Warning: OpenType feature 'Ligatures=Required, Common,
(fontspec) Contextual, TeX' (rlig) not available for font
(fontspec) 'MinionPro-Regular' with script 'CustomDefault' and
(fontspec) language 'Default'.
...
再次强调,Minion Pro 是 Adobe 的旗舰字体之一,因此我确信它支持所有连字符类型。我做错了什么?