
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>
何が問題なのでしょうか?