I'm interested in using the AnkaCoder font. I downloaded it, but the
fontname (in the TTF files) is "Anka/Coder" with an embedded slash.
\documentclass{article}
\usepackage{fontspec}
\setmonofont{Anka/Coder Narrow}
\begin{document}
text
\begin{verbatim}
stuff
\end{verbatim}
\end{document}
This gives the error:
kpathsea:make_tex: Invalid filename `Anka/Coder Narrow', contains ' '
! Package fontspec Error: The font "Anka/Coder Narrow" cannot be found.
But it seems to be the slash that causes the problem, not the space,
because trying to load regular Anker/Coder goes off to run METAFONT
because it thinks the fonts are missing.
Running fc-list gives (I have pruned /home/peter/texmf/fonts/truetype/google/anka from the start of the
location for brevity here):
/AnkaCoder-C75-b.ttf: Anka/Coder Narrow:style=Bold
/AnkaCoder-C75-bi.ttf: Anka/Coder Narrow:style=Bold Italic /AnkaCoder-C75-i.ttf: Anka/Coder Narrow:style=Italic
/AnkaCoder-C75-r.ttf: Anka/Coder Narrow:style=Regular
/AnkaCoder-C87-b.ttf: Anka/Coder Condensed:style=Bold
/AnkaCoder-C87-bi.ttf: Anka/Coder Condensed:style=Bold Italic /AnkaCoder-C87-i.ttf: Anka/Coder Condensed:style=Italic
/AnkaCoder-C87-r.ttf: Anka/Coder Condensed:style=Regular
/AnkaCoder-b.ttf: Anka/Coder:style=Bold
/AnkaCoder-bi.ttf: Anka/Coder:style=Bold Italic
/AnkaCoder-i.ttf: Anka/Coder:style=Italic
/AnkaCoder-r.ttf: Anka/Coder:style=Regular
Is there a way to allow fontspec to load a font whose name contains an
embedded slash?
Peter
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)