From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95896 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: another font loading error Date: Mon, 22 Aug 2016 23:16:26 -0400 Message-ID: References: <57BB1E07.2000907@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0970588082422829442==" X-Trace: blaine.gmane.org 1471922229 30784 195.159.176.226 (23 Aug 2016 03:17:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2016 03:17:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 23 05:17:00 2016 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bc2Cy-0007QP-IV for gctc-ntg-context-518@m.gmane.org; Tue, 23 Aug 2016 05:17:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BCD6A154AE; Tue, 23 Aug 2016 05:16:41 +0200 (CEST) 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 sL6XLVdfyXZ1; Tue, 23 Aug 2016 05:16:41 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 074D8154B3; Tue, 23 Aug 2016 05:16:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 113BD154AF for ; Tue, 23 Aug 2016 05:16:40 +0200 (CEST) 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 VGt9lcWRn-5F for ; Tue, 23 Aug 2016 05:16:38 +0200 (CEST) Original-Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9056B154AE for ; Tue, 23 Aug 2016 05:16:28 +0200 (CEST) Original-Received: by mail-oi0-f48.google.com with SMTP id 4so180071348oih.2 for ; Mon, 22 Aug 2016 20:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RJGaRxp6e46MOEhfk600maqAQq1lB6fyuwDiiZeID7A=; b=iksJpvQOlQLR3zCTNBHSAhn5ICaW3GKrqul8YRS2lQGMU2ze6JWk2NB6gNJC0iZdmj pGzkFWNKUwkJ+NNavfQWTVrgAZ6x8PCOavNDd4/4+NeP9BgVDBolUox+6HELTgMoWVun HIe//0+/wLec4vDvDduQWlEwnyfozOx1mzAUAfW0uDVkSa+SX4WtLSvAdBCKgAwp1ZS7 hc5aiuhMWBb1w3rv0unDBUWoFw+cvbdhoguyLgEZyc6tnDKuO3CHllg8gHNq7Spr4r14 igZs5KFXeXikpv8ark2I1pk5k3QnfBlkKTS9HO1xc7G4e3Yc/CrKIw43/3Y+C7ilKSoE J2VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RJGaRxp6e46MOEhfk600maqAQq1lB6fyuwDiiZeID7A=; b=BmUblARKvmusx/CN6djZGYL3SQQ6F9262S64zC7H0gwRyxPH9lehsTuP5A2n8cAwH8 zb6kJ+Oop2fiDq1p4ENdqnJPFYPeho1xeedO/aP0Bs6OmyRxit0iKNX+kNrHD7kCPcXk WN3XgOozcxzwGeRBxdGjt7/pPy17ekYbjViaU36jqwFVHXg242fOW8F4gky6dvy2oqvN clm19aLsPq9pSVKiJMs89VTTkHSNegqdUxsvjPZn+YOBgnOyh0tTJX6jDQcvA0kWQChc XMxXaTZqalayJ4Gi2gMHahgEPiGnYsgHyK1EBkU/MBijb6nkzZBjR1SkhHcZCZnVkeFv EOvw== X-Gm-Message-State: AEkoouvRJ6VD8lJyjZh91FCHP1UUaLQ4+6Iamawz+N1FnTv9lKuA2xjEYeZMgcik1YFEE8MlayCuzXQdCgCkuw== X-Received: by 10.202.234.65 with SMTP id i62mr14765722oih.176.1471922186632; Mon, 22 Aug 2016 20:16:26 -0700 (PDT) Original-Received: by 10.157.45.77 with HTTP; Mon, 22 Aug 2016 20:16:26 -0700 (PDT) In-Reply-To: <57BB1E07.2000907@gmail.com> 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:95896 Archived-At: --===============0970588082422829442== Content-Type: multipart/alternative; boundary=001a113d5d9c1242de053ab4973b --001a113d5d9c1242de053ab4973b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Wolfgang, thanks for looking into it! does this mean there is some bug in CONTEXT/LuaTeX font loading or something wrong with the font? i looked at the history on bitbucket mirror and the problem seems to have started when we moved from 2016-08-11 14:00:0= 0 to 2016-08-15 22:45:00. the offending lines in tex/context/base/mkiv/font-ots.lua (line 3762) has kerns=3D{ [1705]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [1707]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [1711]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [64400]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [64404]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [64469]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [65243]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, [983071]=3D{ [2]=3D{ 0, 0, -290, 0 }, }, } and with k, v =3D 1705, { 0, 0, -290, 0 }, we want to dereference v[1][3], which leads to an error. prior to this change, the code was looking up v[3] (which would result in nil but no further dereferencing to cause an error). i checked that this part of the table was the same with the previous version (from 08-08). =E2=80=94MHB On Mon, Aug 22, 2016 at 11:45 AM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > Mohammad Hossein Bateni > 22. August 2016 um 17:01 > Hello, > > After the upgrade to latest beta (from 08.08 21:28), I cannot load many o= f > my Persian fonts (one uploaded here > for testing). It works on "current" without any issues but not on "beta"= . > Find an MWE as well as the error message below. (I did test on a fresh > standalone version as well.) > > > \starttext > \definedfont[HMXNiloofar*arabic] > Salam > \stoptext > > > When I change the value from the "hasspacekerns" variable (after deleting > hm-xniloofar.tmc) in hm-xniloofar.tma from true to false the font is load= ed > without errors. > > > hm-xniloofar.tma (line 7147 ff): > > ["properties"]=3D{ > ["hascolor"]=3Dfalse, > ["hasitalics"]=3Dfalse, > ["hasspacekerns"]=3Dtrue, > }, > > > Wolfgang > > ____________________________________________________________ > _______________________ > 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 > ____________________________________________________________ > _______________________ > --001a113d5d9c1242de053ab4973b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Wolfgang,

thanks for looking= into it!

does this mean there is some bug in CONTEXT/L= uaTeX font loading or something wrong with the font? =C2=A0i looked at the = history on bitbucket mirror and the problem seems to have started when we m= oved from=C2=A020= 16-08-11 14:00:00=C2=A0to=C2=A02016-08-15 22:45:00.

the off= ending lines in tex/context/base/mkiv/font-ots.lua=C2=A0(line 3762) has

kerns=3D{
=C2=A0[1705]=3D{
=C2=A0 [2]=3D{ 0, 0, -290= , 0 },
=C2=A0},
=C2=A0[1707]=3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },=C2=A0},
=C2=A0[1711]=3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0= },
=C2=A0[64400]=3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0},
= =C2=A0[64404]=3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0},
=C2=A0[= 64469]=3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0},
=C2=A0[65243]= =3D{
=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0},
=C2=A0[983071]=3D{<= br>=C2=A0 [2]=3D{ 0, 0, -290, 0 },
=C2=A0},
}
=

and with k, v =3D 1705, { 0, 0, -290, 0 }, we want to d= ereference v[1][3], which leads to an error. =C2=A0prior to this change, th= e code was looking up v[3] (which would result in nil but no further derefe= rencing to cause an error). =C2=A0i checked that this part of the table was= the same with the previous version (from 08-08).

= =E2=80=94MHB

On Mon, Aug 22, 2016 at 11:45 AM, Wolfgang Schuster <schu= ster.wolfgang@gmail.com> wrote:
= 22.=20 August 2016 um 17:01
Hello,

After the upgrade to latest beta (from 08.08 21:28), I cannot load many of my Persian fonts (one uploaded here for=20 testing).=C2=A0 It works on "current" without any issues but not = on "beta".=C2=A0=20 Find an MWE as well as the error message below. =C2=A0(I did test on a fres= h=20 standalone version as well.)


\starttext
\defined= font[HMXNiloofar*arabic]
Salam
\stoptext

When I change the value from the "hasspacekerns" variable (after= =20 deleting hm-xniloofar.tmc) in hm-xniloofar.tma from true to false the=20 font is loaded without errors.


hm-xniloofar.tma (line 7147 ff):

=C2=A0["properties"]=3D{
=C2=A0 ["hascolor"]=3Dfalse,
=C2=A0 ["hasitalics"]=3Dfalse,
=C2=A0 ["hasspacekerns"]=3Dtrue,
=C2=A0},


Wolfgang

_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113d5d9c1242de053ab4973b-- --===============0970588082422829442== 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= --===============0970588082422829442==--