From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: another font loading error
Date: Mon, 22 Aug 2016 23:16:26 -0400 [thread overview]
Message-ID: <CAMHZ1da0r9yzNepA0hds0v=Hrda-kAjVU=0BT-vcCu=QN5RUxg@mail.gmail.com> (raw)
In-Reply-To: <57BB1E07.2000907@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2545 bytes --]
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:00
to 2016-08-15 22:45:00.
the offending lines in tex/context/base/mkiv/font-ots.lua (line 3762) has
kerns={
[1705]={
[2]={ 0, 0, -290, 0 },
},
[1707]={
[2]={ 0, 0, -290, 0 },
},
[1711]={
[2]={ 0, 0, -290, 0 },
},
[64400]={
[2]={ 0, 0, -290, 0 },
},
[64404]={
[2]={ 0, 0, -290, 0 },
},
[64469]={
[2]={ 0, 0, -290, 0 },
},
[65243]={
[2]={ 0, 0, -290, 0 },
},
[983071]={
[2]={ 0, 0, -290, 0 },
},
}
and with k, v = 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).
—MHB
On Mon, Aug 22, 2016 at 11:45 AM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:
> Mohammad Hossein Bateni <bateni@gmail.com>
> 22. 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 <http://mhbateni.com/context/bug-03/>
> 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 loaded
> without errors.
>
>
> hm-xniloofar.tma (line 7147 ff):
>
> ["properties"]={
> ["hascolor"]=false,
> ["hasitalics"]=false,
> ["hasspacekerns"]=true,
> },
>
>
> 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
> ____________________________________________________________
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 4778 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2016-08-23 3:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 15:01 Mohammad Hossein Bateni
2016-08-22 15:45 ` Wolfgang Schuster
2016-08-23 3:16 ` Mohammad Hossein Bateni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMHZ1da0r9yzNepA0hds0v=Hrda-kAjVU=0BT-vcCu=QN5RUxg@mail.gmail.com' \
--to=bateni@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).