TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Hi and welcome to TeX.sx. It's perfectly fine to ask a question and then answer it. This would be preferable to having an answer in the question. So perhaps you can edit your question just showing the error you got originally and then add your own answer as an answer. This way the question doesn't remain perpetually unanswered. – Alan Munn Jul 28 '12 at 16:06
Where exactly is the font? And how exactly are you calling it with setmainfont? – Ulrike Fischer Jul 28 '12 at 17:17
Try fclist | grep <fontname> to see whether the font is installed or not. – Marco Daniel Jul 28 '12 at 18:36
Does running mkluatexfontdb help? – Martin Schröder Jul 29 '12 at 15:35
I'm afraid I cannot say, Martin. My problems are gone since I deleted the broken .lua files as I explained in my own answer. So trying mkluatexfontdb does nothing now (apart from a trivial information message). – escudito Jul 29 '12 at 17:15
up vote 9 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.