
假傾斜與使用比例一起使用 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
,其中指定了選項後字體名稱。