我尝试使用以下方法为 phv 设置一个浅色字体系列
\DeclareCaptionFont{phv_light}{\small\fontseries{el}\fontfamily{phv}\selectfont}
但系列没有效果。只有当我使用 b 时,字体才会变成常规粗体。
答案1
由于您知道字体系列名称,phv
您可以在 TeX 分发中查找文件t1phv.fd
或ot1phv.fd
。
从终端使用 Bash 语法,这非常简单:
less $(kpsewhich t1phv.fd)
这表明
\ProvidesFile{t1phv.fd}
[2020/03/25 scalable font definitions for T1/phv.]
\expandafter\ifx\csname Hv@scale\endcsname\relax
\let\Hv@@scale\@empty
\else
\edef\Hv@@scale{s*[\csname Hv@scale\endcsname]}%
\fi
\DeclareFontFamily{T1}{phv}{}
\DeclareFontShape{T1}{phv}{m}{n}{
<-> \Hv@@scale phvr8t
}{}
\DeclareFontShape{T1}{phv}{m}{sc}{
<-> \Hv@@scale phvrc8t
}{}
\DeclareFontShape{T1}{phv}{m}{sl}{
<-> \Hv@@scale phvro8t
}{}
\DeclareFontShape{T1}{phv}{c}{n}{
<-> \Hv@@scale phvr8tn
}{}
\DeclareFontShape{T1}{phv}{c}{sc}{
<-> \Hv@@scale phvrc8tn
}{}
\DeclareFontShape{T1}{phv}{c}{sl}{
<-> \Hv@@scale phvro8tn
}{}
\DeclareFontShape{T1}{phv}{b}{n}{
<-> \Hv@@scale phvb8t
}{}
\DeclareFontShape{T1}{phv}{b}{sc}{
<-> \Hv@@scale phvbc8t
}{}
\DeclareFontShape{T1}{phv}{b}{sl}{
<-> \Hv@@scale phvbo8t
}{}
\DeclareFontShape{T1}{phv}{bc}{n}{
<-> \Hv@@scale phvb8tn
}{}
\DeclareFontShape{T1}{phv}{bc}{sc}{
<-> \Hv@@scale phvbc8tn
}{}
\DeclareFontShape{T1}{phv}{bc}{sl}{
<-> \Hv@@scale phvbo8tn
}{}
\DeclareFontShape{T1}{phv}{m}{it}{<->ssub * phv/m/sl}{}
\DeclareFontShape{T1}{phv}{c}{it}{<->ssub * phv/c/sl}{}
\DeclareFontShape{T1}{phv}{bx}{n}{<->ssub * phv/b/n}{}
\DeclareFontShape{T1}{phv}{bx}{sc}{<->ssub * phv/b/sc}{}
\DeclareFontShape{T1}{phv}{bx}{sl}{<->ssub * phv/b/sl}{}
\DeclareFontShape{T1}{phv}{b}{it}{<->ssub * phv/b/sl}{}
\DeclareFontShape{T1}{phv}{bx}{it}{<->ssub * phv/b/it}{}
\DeclareFontShape{T1}{phv}{bc}{it}{<->ssub * phv/bc/sl}{}
\endinput
这意味着已知级数是
m
(中等)、b
(粗体)、c
(压缩)、bc
(粗体压缩)