长拱形 f 往往会不恰当地接触其后继者,人们通常希望有一个更窄的替代方法,例如当下一个字母是 'ä' 时。如果安装了 \strike{newest} 字体的原始版本(texlive 中没有),则可以通过 calt 功能实现此目的。
\documentclass{article}
\usepackage{fontspec}
\setmainfont{EB Garamond}[RawFeature=+calt]
\begin{document}
gefährlich fahren
\end{document}
但有时设计师没有预料到,人们会想要使用短 f。每次都可以指定这一点,方法是:
\newcommand\f{\symbol{"F0367}}
\f$'$
但是否也有可能
- 完全禁用长 f;
- 指定后跟素数的 f 应该始终很短?
答案1
有二EB Garamond 的口味。Georg Duffner 的“原版”仍可按照以下说明购买:http://georgduffner.at并且它有这个calt
功能。
CTAN 和 TeX Live 有一个“新”版本,由 Octavio Pardo 编写。此版本缺少版本calt
。
我从https://bitbucket.org/georgd/eb-garamond/downloads/并解压档案。将您的示例修改为
\documentclass{article}
\usepackage{fontspec}
\setmainfont{EBGaramond}[
Path=./EBGaramond-0.016/otf/,
Extension=.otf,
UprightFont=*12-Regular,
ItalicFont=*12-Italic,
RawFeature=+calt,
]
\begin{document}
gefährlich fahren
\end{document}
输出结果与广告一致。
“原始”版本具有更丰富的功能:
> otfinfo -f EBGaramond-0.016/otf/EBGaramond12-Regular.otf
c2sc Small Capitals From Capitals
calt Contextual Alternates
case Case-Sensitive Forms
ccmp Glyph Composition/Decomposition
cv01 Character Variants 1
cv02 Character Variants 2
cv03 Character Variants 3
cv06 Character Variants 6
cv11 <unknown feature>
cv21 <unknown feature>
cv27 <unknown feature>
cv47 <unknown feature>
cv80 <unknown feature>
cv81 <unknown feature>
cv82 <unknown feature>
cv83 <unknown feature>
cv90 <unknown feature>
cv91 <unknown feature>
dlig Discretionary Ligatures
dnom Denominators
frac Fractions
hlig Historical Ligatures
kern Kerning
lfbd Left Bounds
liga Standard Ligatures
lnum Lining Figures
mark Mark Positioning
mkmk Mark to Mark Positioning
numr Numerators
onum Oldstyle Figures
ordn Ordinals
pnum Proportional Figures
rtbd Right Bounds
salt Stylistic Alternates
sinf Scientific Inferiors
size Optical Size
smcp Small Capitals
ss01 Stylistic Set 1
ss02 Stylistic Set 2
ss05 Stylistic Set 5
ss06 Stylistic Set 6
ss07 Stylistic Set 7
ss20 Stylistic Set 20
subs Subscript
sups Superscript
tnum Tabular Figures
xtex <unknown feature>
“新”版本有
> otfinfo -f /usr/local/texlive/2019/texmf-dist/fonts/opentype/public/ebgaramond/EBGaramond-Regular.otf
aalt Access All Alternates
c2pc Petite Capitals From Capitals
c2sc Small Capitals From Capitals
case Case-Sensitive Forms
dlig Discretionary Ligatures
frac Fractions
hist Historical Forms
hlig Historical Ligatures
kern Kerning
liga Standard Ligatures
lnum Lining Figures
mark Mark Positioning
mkmk Mark to Mark Positioning
onum Oldstyle Figures
ordn Ordinals
pcap Petite Capitals
pnum Proportional Figures
sinf Scientific Inferiors
smcp Small Capitals
ss01 Stylistic Set 1
ss02 Stylistic Set 2
ss03 Stylistic Set 3
ss04 Stylistic Set 4
ss05 Stylistic Set 5
ss06 Stylistic Set 6
ss07 Stylistic Set 7
subs Subscript
sups Superscript
swsh Swash
tnum Tabular Figures