當使用 fontspec 進行假傾斜和小型大寫字母縮放時,小型大寫字母也會假傾斜,是否有一個好的解決方法?

當使用 fontspec 進行假傾斜和小型大寫字母縮放時,小型大寫字母也會假傾斜,是否有一個好的解決方法?

假傾斜與使用比例一起使用 fontspec 製作假小型大寫字母效果不佳。fontspec當我指定兩者SmallCapsFeature並且SlantedFeatures我的\scshape文字也收到傾斜時,似乎存在某種定義洩漏。預期的行為應該是\textsc{FOO}小而直並且\textsl{FOO}應該傾斜。然而,如下例所示,情況並非如此,而是既\textsc{FOO}小又傾斜。

\documentclass{memoir}

\usepackage{fontspec}

\begin{document}
\setmainfont[
  SmallCapsFont={Linux Libertine O},
  SmallCapsFeatures={Scale=0.5},
  SlantedFont={Linux Libertine O},
  SlantedFeatures={FakeSlant=0.5},
]{Latin Modern Roman}


Small Caps is slanted now: \textsc{FOO} and also slanted is slanted: \textsl{FOO} 

\end{document}

在此輸入影像描述

答案1

這似乎是個錯誤fontspec;您可以透過指定FakeSlant=0小型大寫字母字體來解決它。

\setmainfont{Latin Modern Roman}[
  SmallCapsFont={Linux Libertine O},
  SmallCapsFeatures={Scale=0.5,FakeSlant=0},
  SlantedFont={Linux Libertine O},
  SlantedFeatures={FakeSlant=0.5},
]

請注意,我使用的是最新版本的fontspec,其中指定了選項字體名稱。

在此輸入影像描述

相關內容