From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93059 Path: news.gmane.org!not-for-mail From: "talazem@fastmail.fm" Newsgroups: gmane.comp.tex.context Subject: Re: Upgrade to 2015.11.19 breaks OTF reader? Date: Fri, 11 Dec 2015 22:51:10 +0000 Message-ID: References: <20151203072658.GA16570@phlegethon> <56604516.1060708@wxs.nl> <20151203173919.GA17901@phlegethon> <5660B447.6080805@wxs.nl> <20151206211441.GA2565@phlegethon> <5664AC40.9090708@wxs.nl> <20151208002243.GA13071@phlegethon> <139716C7-AD7B-41B3-AF04-E7C08C3C1B71@fastmail.fm> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/mixed; boundary="===============2407034059045279439==" X-Trace: ger.gmane.org 1449874303 29530 80.91.229.3 (11 Dec 2015 22:51:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Dec 2015 22:51:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 11 23:51:29 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a7WX5-0004PA-2q for gctc-ntg-context-518@m.gmane.org; Fri, 11 Dec 2015 23:51:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 074D35206; Fri, 11 Dec 2015 23:51:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7MSu1niPQm2A; Fri, 11 Dec 2015 23:50:59 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 34C39547B; Fri, 11 Dec 2015 23:50:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7A25E5458 for ; Fri, 11 Dec 2015 23:50:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8AtgC9--q8PV for ; Fri, 11 Dec 2015 23:50:56 +0100 (CET) Original-Received: from host21.specialservers.com (unknown [213.175.196.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 347545206 for ; Fri, 11 Dec 2015 23:50:45 +0100 (CET) Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:35751 helo=[10.0.1.6]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.86) (envelope-from ) id 1a7WWS-001LBU-G8 for ntg-context@ntg.nl; Fri, 11 Dec 2015 22:50:44 +0000 In-Reply-To: <139716C7-AD7B-41B3-AF04-E7C08C3C1B71@fastmail.fm> X-Mailer: Apple Mail (2.3112) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host21.specialservers.com X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fastmail.fm X-Get-Message-Sender-Via: host21.specialservers.com: authenticated_id: talal@alazem.org X-Authenticated-Sender: host21.specialservers.com: talal@alazem.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:93059 Archived-At: --===============2407034059045279439== Content-Type: multipart/alternative; boundary="Apple-Mail=_36BF876C-47E3-4A74-B772-5D587DF45924" --Apple-Mail=_36BF876C-47E3-4A74-B772-5D587DF45924 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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:=20 > !LuaTeX error: cannot find OpenType font file for reading () > =3D=3D> Fatal error occurred, no output PDF file produced! =20 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 <=E2=80=A6> 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-f= ont = ] Talal > On 10 Dec 2015, at 23:10, talazem@fastmail.fm wrote: >=20 > 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: >=20 > !LuaTeX error: cannot find OpenType font file for reading () > =3D=3D> Fatal error occurred, no output PDF file produced! >=20 > Is there a solution to this? >=20 > Many thanks, > Talal >=20 >> On 8 Dec 2015, at 00:22, Philipp Gesang > wrote: >>=20 >> =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 >>=20 >>> On 12/6/2015 10:14 PM, Philipp Gesang wrote: >>>> =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 >>>>=20 >>>>> The problem persisted with Courier New, not only Source Sans Pro = (SSP). >>>>>=20 >>>>> The font file for Source Sans Pro came directly from the Google's = font service. >>>>>=20 >>>>> The SSP (on my machine) works fine in Inkscape. >>>>>=20 >>>>> The exact same font was also working before the ConTeXt upgrade. >>>>=20 >>>> Confirmed, it appears to work if you revert to the old loader in >>>> font-lib.mkvi. >>>=20 >>> i need a better example of what fails then as it works here >>=20 >>=20 >> The problem seems to be the =E2=80=9Cfilename=E2=80=9D field being = written to the >> cache from the wrong source. Between the old and the new >> fontloader, you get the following picture in the =E2=80=9Cresources=E2=80= =9D >> record: >>=20 >> + ["filename"]=3D"Everson_Mono_Bold.ttf", >> - ["filename"]=3D"/tmp/here-be-fonts/Everson_Mono_Bold.ttf", >>=20 >> The attached patch fixes it for me. >>=20 >> Philipp >>=20 >> = _______________________________= ____________________________________________________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_36BF876C-47E3-4A74-B772-5D587DF45924 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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 ()
> =3D=3D> 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 = <=E2=80=A6> 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 ]

Talal

On 10 Dec 2015, at 23:10, talazem@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 ()
 =3D=3D> 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 <phg@phi-gamma.net> = wrote:

=C2=B7=C2=B7=C2=B7<date: 2015-12-06, = Sunday>=C2=B7=C2=B7=C2=B7<from: Hans Hagen>=C2=B7=C2=B7=C2=B7

On = 12/6/2015 10:14 PM, Philipp Gesang wrote:
=C2=B7=C2=B7=C2=B7<date: 2015-12-03, = Thursday>=C2=B7=C2=B7=C2=B7<from: Thangalin>=C2=B7=C2=B7=C2=B7
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 =E2=80=9Cfilename=E2=80=9D field = being written to the
cache from the wrong source. Between = the old and the new
fontloader, you get the following = picture in the =E2=80=9Cresources=E2=80=9D
record:

   + =  ["filename"]=3D"Everson_Mono_Bold.ttf",
=    - =  ["filename"]=3D"/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 = / 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
_______________________________________________________________= ____________________
= --Apple-Mail=_36BF876C-47E3-4A74-B772-5D587DF45924-- --===============2407034059045279439== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2407034059045279439==--