From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93053 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: Thu, 10 Dec 2015 23:10:17 +0000 Message-ID: <139716C7-AD7B-41B3-AF04-E7C08C3C1B71@fastmail.fm> 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> 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="===============2001587495775661435==" X-Trace: ger.gmane.org 1449789071 779 80.91.229.3 (10 Dec 2015 23:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 23:11:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 11 00:10:57 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 1a7AMR-0006s1-N0 for gctc-ntg-context-518@m.gmane.org; Fri, 11 Dec 2015 00:10:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6DC7153B3; Fri, 11 Dec 2015 00:10:15 +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 eWaP-QUK6h0F; Fri, 11 Dec 2015 00:10:13 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8C2DE53D6; Fri, 11 Dec 2015 00:10:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D461A53B3 for ; Fri, 11 Dec 2015 00:10:11 +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 KbA049XBHVKc for ; Fri, 11 Dec 2015 00:10:05 +0100 (CET) Original-Received: from host21.specialservers.com (host21.specialservers.com [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 B04444EA4 for ; Fri, 11 Dec 2015 00:09:55 +0100 (CET) Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:45412 helo=[10.0.1.6]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.86) (envelope-from ) id 1a7ALS-000Z08-4Q for ntg-context@ntg.nl; Thu, 10 Dec 2015 23:09:54 +0000 In-Reply-To: <20151208002243.GA13071@phlegethon> 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" Xref: news.gmane.org gmane.comp.tex.context:93053 Archived-At: --===============2001587495775661435== Content-Type: multipart/alternative; boundary="Apple-Mail=_F37B5550-9893-4D6B-941E-61ECAB157527" --Apple-Mail=_F37B5550-9893-4D6B-941E-61ECAB157527 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 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 > = __________________________________________________________________________= _________ --Apple-Mail=_F37B5550-9893-4D6B-941E-61ECAB157527 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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
_______________________________________________________________= ____________________

= --Apple-Mail=_F37B5550-9893-4D6B-941E-61ECAB157527-- --===============2001587495775661435== 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= --===============2001587495775661435==--