[NTG-context] lua code prevents compilation

Pablo Rodriguez oinos at gmx.es
Thu Apr 2 09:35:55 CEST 2015


On 04/02/2015 02:23 AM, Hans Hagen wrote:
> On 4/2/2015 1:21 AM, Pablo Rodriguez wrote:
>> [...]
>> Both lack the underscore glyph. This causes the crash, since it works
>> fine if I replace the glyph with an existing glyph in the font.
>> [...]
>> Would it be possible that ConTeXt silently ignores that the font doesn’t
>> contain the glyph?
> 
> the message is fuzzy (and i have to check a lua stack issue maybe but 
> not now) ... if char is nil then char.depth is an error
> 
>> I think this might be a bug.
> 
>  >      function document.addfunnyhyphen(tfmdata)
>  >          local underscore = utf.byte("_")
>  >          local char       = tfmdata.characters[underscore]
> 
>             if not char then return end

Many thanks for your help, Hans.

This solves my issue.


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list