结合 sffamily 和 scshape

结合 sffamily 和 scshape

根据相关评论,应该能够为每个系列指定粗细和形状。为什么我(似乎)不能使用小型大写字母\sffamily

最小示例:

\documentclass{article}

\begin{document}
\sffamily\scshape Test
\end{document}

产生以下输出:

在此处输入图片描述

答案1

通过缩小大写字母来模仿小写字母,在极少数情况下,效果会略微差于其他水平。使用 Computer Modern Sans Serif 时,这种尝试注定会以惨败告终,因为粗笔画是该字体的显著特征,大写字母和小写字母之间的笔画会大相径庭。我建议使用间隔大写字母(使用 可以轻松获得microtype)。

这是计算机现代、欧洲现代和拉丁现代的一个例子。

\documentclass{article}
\usepackage[T1,OT1]{fontenc}
\newcommand{\hsc}[1]{{\footnotesize\MakeUppercase{#1}}}
\begin{document}
\sffamily
T\hsc{his} \hsc{is} F\hsc{ake} S\hsc{mall} C\hsc{aps}

\fontencoding{T1}
T\hsc{his} \hsc{is} F\hsc{ake} S\hsc{mall} C\hsc{aps}

\fontfamily{lmss}
T\hsc{his} \hsc{is} F\hsc{ake} S\hsc{mall} C\hsc{aps}
\end{document}

在此处输入图片描述

除了缺少字距之外,F 和 A 之间的对比太明显且糟糕。

答案2

软件包中有一个带有小写字母的计算机现代版本sansmathfonts。您可以按照以下步骤使用它:

\documentclass{article}
\usepackage[notmath]{sansmathfonts}
\begin{document}
\sffamily
\textsc{Is This Better Than Fake Small Caps?}
\end{document}

答案3

使用 LuaTeX 或 XeTeX 和 fontspec 可以立即使用(也许字体必须支持它,但至少使用 Libertinus 可以支持):

\documentclass[convert,varwidth]{standalone}
\usepackage{fontspec}

\setmainfont{Libertinus Serif}
\setsansfont{Libertinus Sans}

\begin{document}
Normal Text \\
{\sffamily sffamily Text} \\
{\scshape scshape Text} \\
{\sffamily\scshape sffamily scshape Text} \\
\end{document}

这得出

文档输出

相关内容