[luatex] an issue with \rpcode

Ulrike Fischer luatex at nililand.de
Mon Oct 13 12:48:53 CEST 2014


Am Sun, 12 Oct 2014 13:38:47 +0200 schrieb Hans Hagen:


>> in essense it looks as if \rpcode is not ending up in the char table
>> unless \lpcode for the same char is set first (and non-zero)

> \starttext
> 
> \directlua{
>      function fonts.constructors.aftercopyingcharacters(target,original)
>          target.cache = "renew"
>      end
> }
> 
> \pdfprotrudechars=1
> 
> \font\foo = LMRoman10-Regular*default,quality at 12.3pt
> 
> \foo
> 
> \lpcode\foo 45 = 2000\relax
> \rpcode\foo 45 = 2000\relax
> \efcode\foo 45 = 4000\relax
> 
> \directlua{
>      print("data at tex end")
>      inspect(font.fonts              [font.current()].characters[45])
>      print("original passed data")
>      inspect(fonts.hashes.identifiers[font.current()].characters[45])
> }
> 
> test
> 
> \stoptext


When I comment the \lpcode line in this code it shows the same
problem that Frank mentioned at the begin: the right_protrusion
value is missing in the table. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list