ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Error in loading font Samim
@ 2016-08-08  2:12 Mohammad Hossein Bateni
  2016-08-08  2:24 ` Mohammad Hossein Bateni
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammad Hossein Bateni @ 2016-08-08  2:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in loading font Samim
  2016-08-08  2:12 Error in loading font Samim Mohammad Hossein Bateni
@ 2016-08-08  2:24 ` Mohammad Hossein Bateni
  0 siblings, 0 replies; 2+ messages in thread
From: Mohammad Hossein Bateni @ 2016-08-08  2:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Please ignore my last message.  It seems to be working fine now.  Probably
a bad setup on my part.  I will ping again if I run into the same issue
again.

On Sun, Aug 7, 2016 at 10:12 PM, Mohammad Hossein Bateni <bateni@gmail.com>
wrote:

> 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: 3266 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-08  2:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08  2:12 Error in loading font Samim Mohammad Hossein Bateni
2016-08-08  2:24 ` Mohammad Hossein Bateni

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).