fontspec パッケージでカスタム タイプライター フォントを選択できない

fontspec パッケージでカスタム タイプライター フォントを選択できない

FantasqueSansMono-Normal.zipフォントを以下からダウンロードしました。ここフォントを含む TTF フォントを抽出しました:

➜  naulatex git:(logical-markup) ✗ tree TTF
TTF
├── FantasqueSansMono-Bold.ttf
├── FantasqueSansMono-BoldItalic.ttf
├── FantasqueSansMono-Italic.ttf
└── FantasqueSansMono-Regular.ttf

1 directory, 4 files

このフォントをドキュメントのタイプライター フォントとして選択したいと思います。fontspecパッケージ texdoc から理解したとおり、次のようにする必要があります。

% !TeX program = lualatex
\documentclass[11pt]{report}

\usepackage{polyglossia}
\setmainfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
\setmonofont{TTF/FantasqueSansMono-Regular.ttf}[
    BoldFont = TTF/FantasqueSansMono-Bold.ttf,
    ItalicFont = TTF/FantasqueSansMono-Italic.ttf,
    BoldItalicFont = TTF/FantasqueSansMono-BoldItalic.ttf ]

\setmainlanguage{ukrainian}
\setotherlanguages{english, russian}


\begin{document}

    Привіт, Світ! Hello, World!

    \texttt{Some tt text}
    
\end{document}

しかし、この設定は機能しません。次のような結果が生成されます。

fantasque.tex|| LaTeX Font Warning: Font shape `TU/TTF/FantasqueSansMono-Regular.ttf(0)/m' undefined using `TU/lmr/m/n' instead on input line 21.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing number, treated as zero.
fantasque.tex|21 error| Illegal unit of measure (pt inserted).
fantasque.tex|21 error| Missing = inserted for ifdim.
fantasque.tex|21 error| ==> Fatal error occurred, no output PDF file produced!

ドキュメントfontspecには、True Fonts などについて何か書かれています。理解できません。TTF ファイル、Fantasque フォント自体、または LaTeX での設定方法に問題があるのでしょうか。

「Not So Short Introduction To LaTeX」では、私がやったように、フォントへのファイル パスを指定するだけです。何が問題なのでしょうか?

このフォントを tt として選択する方法や、一般的なフォント選択に関するアドバイスはありますか?

答え1

FantasqueSansMono-Regular.ttfnot を使用しTTF/FantasqueSansMono-Regular.ttf、キーTTF/で指定しますPath

関連情報