我尝试将 Quimera 字体(一种免费的 OTF 衬线字体)与 XeLaTeX 一起使用,但这种字体没有斜体或粗体版本。然后在警告消息中出现一些问题
Package fontspec Info: Font family 'Quimera.otf(0)' created for font
(fontspec) 'Quimera.otf' with options
(fontspec) [Ligatures=TeX,AutoFakeBold=1.2,AutoFakeSlant=0.15].
(fontspec)
(fontspec) This font family consists of the following NFSS
(fontspec) series/shapes:
(fontspec)
(fontspec) - 'normal' (m/n) with NFSS spec.:
(fontspec) <->"[Quimera.otf]/OT:script=latn;language=dflt;mapping=tex-text;"
(fontspec) - 'small caps' (m/sc) with NFSS spec.:
(fontspec) - 'bold' (b/n) with NFSS spec.:
(fontspec) <->"[Quimera.otf]/OT:script=latn;language=dflt;embolden=1.2;mapping=tex-text;"
(fontspec) - 'bold small caps' (b/sc) with NFSS spec.:
(fontspec) - 'italic' (m/it) with NFSS spec.:
(fontspec) <->"[Quimera.otf]/OT:script=latn;language=dflt;slant=0.15;mapping=tex-text;"
(fontspec) - 'italic small caps' (m/scit) with NFSS spec.:
(fontspec) - 'bold italic' (b/it) with NFSS spec.:
(fontspec) <->"[Quimera.otf]/OT:script=latn;language=dflt;embolden=1.2;slant=0.15;mapping=tex-text;"
(fontspec) - 'bold italic small caps' (b/scit) with NFSS spec.:
.
.
.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 15.
LaTeX Font Info: Trying to load font information for TS1+cmr on input line 15.
(/usr/local/texlive/2020/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 15.
.
.
.
LaTeX Font Warning: Font shape `TU/Quimera(0)/m/sl' undefined
(Font) using `TU/Quimera(0)/m/it' instead on input line 25.
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
Here is how much of TeX's memory you used:
7963 strings out of 479712
169734 string characters out of 5889204
588753 words of memory out of 5000000
25169 multiletter control sequences out of 15000+600000
535152 words of font info for 37 fonts, out of 8000000 for 9000
1348 hyphenation exceptions out of 8191
37i,11n,67p,240b,233s stack positions out of 5000i,500n,10000p,200000b,80000s
我在 Overleaf 上,没有出现任何错误。问题是pdf
没有生成。我想我忘记了什么。在 XeLaTeX 中可以使用这种字体吗?
\documentclass[a4paper,12pt]{memoir}
%\usepackage{lipsum}
%\usepackage{graphicx}
%\usepackage{xcolor}
\usepackage[no-math]{fontspec}
\setmainfont{Quimera.otf}
[
AutoFakeBold=1.2,
AutoFakeSlant=0.15,
]
\usepackage[pass]{geometry}
\begin{document}
\savegeometry{Mem}
\newgeometry{margin=0pt}
%\lipsum[1-10]
Quimera
%\clearpage
%\loadgeometry{Mem}
%\lipsum[11-20]
\end{document}