ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Error in loading font Samim
Date: Sun, 7 Aug 2016 22:12:45 -0400	[thread overview]
Message-ID: <CAMHZ1damr=ACNj+Bm63E5g1-NxSY=JcNzVGgLKaQzokO0AqLqw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2092 bytes --]

Hello,

I believe this worked fine in June's beta but now gives an error.


\starttext
\definedfont[Samim]
سلام
\stoptext


I got the font originally from here
<https://github.com/rastikerdar/samim-font/releases/download/v0.11.0/samim-font-v0.11.0.zip>,
but then removed the MATH table because it was causing an error at the time
to get the attached version.

Now the above code gives the following error:


...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: bad
argument #2 to '__div' (invalid replacement value)
stack traceback:
[C]: in function '__div'
...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in
function 'splitter'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in
function 'addfeature'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in
function 'enhancer'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1269: in
function 'enhance'
...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1291: in
function 'apply'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:246: in
function 'load'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:538: in
function 'otftotfm'
...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:566: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-otl.lua:565>
(...tail calls...)
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:304: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:492: in
function 'loadfont'
...ext/tex/texmf-context/tex/context/base/mkiv/font-def.lua:418: in
function 'read'
...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1172: in
function <...ext/tex/texmf-context/tex/context/base/mkiv/font-ctx.lua:1059>


Could you advise me on how to get over this issue?  As far as I know, the
font lacks Latin characters and is restricted to the Arabic/Farsi
characters.  In a more complicated example, I used dejavusans as fallback
but the above MWE seemed fine, as far as I remember.

Thanks,
MHB

[-- Attachment #1.2: Type: text/html, Size: 2525 bytes --]

[-- Attachment #2: Samim.ttf --]
[-- Type: application/x-font-ttf, Size: 47544 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

             reply	other threads:[~2016-08-08  2:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08  2:12 Mohammad Hossein Bateni [this message]
2016-08-08  2:24 ` Mohammad Hossein Bateni

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='CAMHZ1damr=ACNj+Bm63E5g1-NxSY=JcNzVGgLKaQzokO0AqLqw@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).