
XeLaTeX를 사용하면 다음 소스가 예상대로 작동합니다.
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Bonum}
\setmathfont{texgyrebonum-math.otf} % this way OK
%\setmathfont{TeX Gyre Bonum Math} % but this way gives "font cannot be found" error
\begin{document}
\[
\int_{0}^{1} e^{-\frac{1}{2} \xi^{2}} d \xi
\]
\end{document}
그러나 해당 줄을 주석 처리하면
\setmathfont{texgyrebonum-math.otf}
그리고 그 줄의 주석을 해제하세요
\setmathfont{TeX Gyre Bonum Math}
그러면 오류가 발생합니다
Package fontspec Error: The font "TeX Gyre Bonum Math" cannot be found.
그러나 수학 글꼴을 지정하는 후자의 "자세한" 형식은 TeX Gyre Pagella Math 및 TeX Gyre Termes Math에서 작동합니다.
명령
otfinfo -a `kpsewhich texgyrebonum-math.otf`
예상된 결과를 제공합니다 TeX Gyre Bonum Math
. 그리고
/usr/local/texlive/2019/texmf-var/fonts/conf/texlive-fontconfig.conf
이미 다음 줄이 포함되어 있습니다.
<dir>/usr/local/texlive/2019/texmf-dist/fonts/opentype</dir>
무엇이 잘못되었을 수 있나요?