No se puede seleccionar una fuente de máquina de escribir personalizada con el paquete fontspec

No se puede seleccionar una fuente de máquina de escribir personalizada con el paquete fontspec

He descargado la fuente FantasqueSansMono-Normal.zip deaquí. Extraje el fonder TTF con las fuentes:

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

1 directory, 4 files

Quiero seleccionar esta fuente como fuente de máquina de escribir para mi documento. Según entendí por fontspecel paquete texdoc, debería hacer algo como eso:

% !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}

Pero esta configuración no funcionará. Produce:

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!

Los fontspecdocumentos dicen algo sobre fuentes verdaderas o algo así. No puedo entenderlo, ¿hay algún problema con los archivos TTF, la fuente Fantasque o la forma en que la configuré en LaTeX?

La introducción no tan breve a LaTeX hace lo mismo que yo, solo especifica las rutas de los archivos a las fuentes. ¿Qué ocurre?

¿Algún consejo sobre cómo seleccionar esta fuente como tt o consejos generales para la selección de fuentes?

Respuesta1

FantasqueSansMono-Regular.ttfNo utilice TTF/FantasqueSansMono-Regular.ttfy especifique TTF/mediante la Pathclave.

información relacionada