我正在使用xelatex编写一份简历,字体定义如下:
\RequirePackage{fontspec}
% Main document font
\setmainfont[
Extension = .otf ,
UprightFont = *-regular ,
BoldFont = *-bold ,
ItalicFont = *-italic ,
BoldItalicFont = *-bolditalic ,
SmallCapsFont = Fontin-SmallCaps
]{texgyretermes}
当我编译时,她的日志显示如下错误:
(/usr/local/texlive/2023/texmf-dist/tex/latex/fontawesome/fontawesomesymbols-ge
neric.tex)
(/usr/local/texlive/2023/texmf-dist/tex/latex/fontawesome/fontawesomesymbols-xe
luatex.tex)) (/usr/local/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/dvipsnam.def))
! Package fontspec Error: The font "Fontin-SmallCaps" cannot be found.
For immediate help type H <return>.
...
l.26
?
我已经下载字体并复制到系统路径中:
ubuntu@VM-0-16-ubuntu:/usr/share/fonts/opentype/reddwarfcv$ ls Fontin*
Fontin-Bold.otf Fontin-Italic.otf Fontin-Regular.otf Fontin-SmallCaps.otf
我是不是漏掉了什么?我尝试重新运行 fc-cache 命令。