Thursday, May 2, 2024

Annoying Latex (Xetex) Overleaf thing

Why is it saying "font cannot be found"? Turns out the fix was just this:

For every user of Overleaf - this is the way to go if you have a local fonts directory:

\setmainfont[Path=fonts/]{myfont.ttf}

Since it took me way to much time to find this issue: Be aware that the / at the end of the path is necessary (but not at the beginning)!

Very annoying.