In case this helps anyone else:

In my case, the LuaTeX error resulted from what appears to be a corrupt font 
cache. I was getting the error: 

> !LuaTeX error: cannot find OpenType font file for reading ()
> ==> Fatal error occurred, no output PDF file produced!
 
The solution was to clean the LuaTeX font cache in my ConTeXt standalone 
directory. Mine was in:
` ~/context/tex/texmf-cache/luatex-cache/context/<...>/fonts/otf/ `

(The <…> represents a long string of numbers.)

I deleted the .tma and .tmc files in that OTF directory. Upon running ConTeXt 
again, everything worked fine. [The source of this discovery was 
http://tex.stackexchange.com/questions/65038/luatex-cannot-find-existing-font 
<http://tex.stackexchange.com/questions/65038/luatex-cannot-find-existing-font> 
]

Talal

> On 10 Dec 2015, at 23:10, tala...@fastmail.fm wrote:
> 
> I am having the same problem as the OP. I have manually edited the 
> font-otr.lua file as per the patch below, and I deleted the font cache. But 
> all to no avail. I still get:
> 
> !LuaTeX error: cannot find OpenType font file for reading ()
>  ==> Fatal error occurred, no output PDF file produced!
> 
> Is there a solution to this?
> 
> Many thanks,
> Talal
> 
>> On 8 Dec 2015, at 00:22, Philipp Gesang <p...@phi-gamma.net 
>> <mailto:p...@phi-gamma.net>> wrote:
>> 
>> ···<date: 2015-12-06, Sunday>···<from: Hans Hagen>···
>> 
>>> On 12/6/2015 10:14 PM, Philipp Gesang wrote:
>>>> ···<date: 2015-12-03, Thursday>···<from: Thangalin>···
>>>> 
>>>>> The problem persisted with Courier New, not only Source Sans Pro (SSP).
>>>>> 
>>>>> The font file for Source Sans Pro came directly from the Google's font 
>>>>> service.
>>>>> 
>>>>> The SSP (on my machine) works fine in Inkscape.
>>>>> 
>>>>> The exact same font was also working before the ConTeXt upgrade.
>>>> 
>>>> Confirmed, it appears to work if you revert to the old loader in
>>>> font-lib.mkvi.
>>> 
>>> i need a better example of what fails then as it works here
>> 
>> 
>> The problem seems to be the “filename” field being written to the
>> cache from the wrong source. Between the old and the new
>> fontloader, you get the following picture in the “resources”
>> record:
>> 
>>    +  ["filename"]="Everson_Mono_Bold.ttf",
>>    -  ["filename"]="/tmp/here-be-fonts/Everson_Mono_Bold.ttf",
>> 
>> The attached patch fixes it for me.
>> 
>> Philipp
>> 
>> <font-otr.lua-fix-resources.filename.patch>___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://tex.aanhet.net <http://tex.aanhet.net/>
>> archive  : http://foundry.supelec.fr/projects/contextrev/ 
>> <http://foundry.supelec.fr/projects/contextrev/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to