I have a short tex file, to be compiled with xetex (eventually I will be adding IPA, but since the following doesn't work, I have omitted that):
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage[variant=ancient]{greek}
\setmainfont{Libertinus Serif}
\begin{document}
The Greek word \textgreek{βάραθρον} means `gulf', `pit' or `cleft'.
\end{document}
Result:
kpathsea:make_tex: Invalid filename `Libertinus Serif', contains ' '
! Package fontspec Error: The font "Libertinus Serif" cannot be found.
which is extremely curious since I have just installed texlive (2020). Not the whole bundle, but certainly basic and extra packages, fonts and the Greek language pack.
I have traced execution with 'truss' (Solaris) but I'm afraid I can't tell from that what is wrong.
find /opt/texlive -name 'libert' give me 83 file names, so I'm pretty sure the font is installed.
I would be grateful for some help with this.
Noel Hunt
Postscript: I did try the \usepackage{libertinus} option but that didn't work, but running the luaotfload-tool command told me that the font names database wasn't found and it was created (kpsewhich LibertinusSerif-Regular.otf showed the file in the right place). After luaotfload-tool ran, xetex runs correctly. So, it was the otf fonts database being non-existent it seems. It is odd though, because as I said initially, it was fresh install of texlive. Many thanks to those who responded to my question.
\usepackage{libertinus}