Overleaf renders a pdf properly when the upright font file is in the root folder, but returns an error when the file is in a folder.
Here's the source
\documentclass{article}
\usepackage{fontspec}
\setmainfont[
ItalicFont={fonts/LinLibertine_RIah.ttf},
]{LinLibertine_Rah.ttf}
\begin{document}
Hello \emph{world}
\end{document}
and here's the file structure.
but if I move the upright file into the same folder, changing the source thus
\documentclass{article}
\usepackage{fontspec}
\setmainfont[
ItalicFont={fonts/LinLibertine_RIah.ttf},
]{fonts/LinLibertine_Rah.ttf}
\begin{document}
Hello \emph{world}
\end{document}
and updating the file structure
returns an error.
How do I move properly refer to the upright font file when its in a folder?
Path
option does:\setmainfont[Path=fonts/,ItalicFont=LinLibertine_RIah.ttf]{LinLibertine_Rah.ttf}