My Fedora 17 LuaLaTeX (2012) system just keeps complaining about some particular (of course existing) font not existing. It can't spit out any PDF from a TeX file using that font. This is the error I am getting:
!LuaTeX error: cannot find OpenType font file for reading ()
==> Fatal error occurred, no output PDF file produced!
I am 100% positive the otf font file exists and that the path I am giving to setmainfont is correct.
After perusing TeX StackExchange searching for help, I couldn't find any recommendation that worked.
Can anyone help?
Best Answer
I just found a solution.
It turned out it was all about cleaning my LuaTeX font cache.
Try that if you face the same problem. Go to your home folder. Activate viewing of hidden files (Ctrl+H). Look for
.texlive2012/texmf-var/luatex-cache/generic/fonts/otf
and delete the.lua
file(s) that more closely match your "existing but not found" fontname.That did the trick in my case, and forever. I suppose an interrupted PDF compilation was the culprit.