XeLaTeX 无法关闭小型大写字母

XeLaTeX 无法关闭小型大写字母

我在使用免费字体时发现了一个奇怪的问题丰廷

\documentclass{article} % Default font size and paper size

\usepackage{fontspec} % For loading fonts

\setmainfont{Fontin}

\begin{document}

Here is some text.

\textnormal{Here is some text.}

\textup{Here is some text.}

\textrm{Here is some text.}

\textsf{Here is some text.}

\textsl{Here is some text.}

\textsc{Here is some text.}

\uppercase{Here is some text.}

\lowercase{Here is some text.}

\textbf{Here is some text.}

\textmd{Here is some text.}

\end{document}

当我使用 XeLaTeX 进行编译时,大多数文本都以小型大写字母的形式显示: 2

但是,如果我使用 LuaLaTeX,则所有内容都会按预期呈现 - 除了小型大写字母行:

3

我只在使用 Fontin 时遇到过这个问题;其他字体似乎都可以正常工作。我使用的是 Arch Linux。

答案1

\documentclass{article} % Default font size and paper size
\usepackage{fontspec} % For loading fonts
\setmainfont[SmallCapsFont=Fontin]{Fontin-Regular}

\begin{document}
    Here is some text.\par
    \textnormal{Here is some text.} normal\par
    \textup{Here is some text.} up\par
    \textrm{Here is some text.} rm\par
    \textsf{Here is some text.} sf\par
    \textsl{Here is some text.} sl\par
    \textsc{Here is some text.} sc\par
    \uppercase{Here is some text.} uppercase\par
    \lowercase{Here is some text.} lowercase\par
    \textbf{Here is some text.} bf\par
    \textmd{Here is some text.} md
\end{document}

在此处输入图片描述

答案2

\documentclass{article}
\usepackage{fontspec}
\renewcommand{\familydefault}{\sfdefault}
\setmainfont{Fontin}

 \begin{document}
Here is some text.

\textnormal{Here is some text.}

\textup{Here is some text.}

\textrm{Here is some text.}

\textsf{Here is some text.}

\textsl{Here is some text.}

\textsc{Here is some text.}

\uppercase{Here is some text.}

\lowercase{Here is some text.}

\textbf{Here is some text.}

\textmd{Here is some text.}

\end{document}

\end{document}

生产

https://lh3.googleusercontent.com/CYKXcobrm9ju7naSJ-TN2u7nm0r9Xl4MXscfbaqwonTyzHx43NLsXVLw2ovoF6OdSZzICraGVyS1-x9b4okyMERNGFZJgC71albWMNEWSWwj9sd0myp1uZRKgooGLayDc7u2p_MNLTndouW2sqi6B1Bu2frEd4BG32zxW1kMsZPlakHwJNQHkFo6aM5_3Q9noP50-R48WUlPTg0tzp4OAqqhba4TcobUNaZvcdEMeek9HaMtnxNhTVEnxWYLUh11T04_C0oQt9LhaptcjI1qh-9 kQYDqb2mgt8v02TbXLbI3W6yzqLf_Wv1TYCBtVOq8hs9AnmwqkP-MfO44QsKVNjGdtzDRYqbCfKxXbk3mdehTuxs_GPMVrWshwJGKuseQpY1TOubbJA4yJ0bq9x3hFcF-zd66os5ByFtN2bCyO2YnBmQZZz5- dzyUiX_rd43lgKjh8UxsPlsvE8MjIHEU8yI7ug7jupBtSoFX0UEmKIOxHrfEFORSsIxXEdboP_IB3SCtXQyF_xxdn9JuCQMQCQSug1qPD24V4ckLxrrvstWSTGDaVi1JW-soYy5JqVXfds2c=w243-h305-no

相关内容