[NTG-context] font-ocl.lua:76: attempt to call a nil value (field 'register')

Ulrike Fischer news3 at nililand.de
Wed Nov 21 13:01:47 CET 2018


I tried to register a demo colorpalette:

\starttext
\directlua{fonts.handlers.otf.registerpalette("demo", {
{ g=1 }, %accents
{ b=1 }, %06dd
{ r=0.5, g=0.5, b=0.5 }, %unused?
{ g = 0.5, b=0, r=1 },
}
)}

blub
\stoptext


and got the error 

font-ocl.lua:76: attempt to call a nil value (field 'register')


(I wanted to test the coloring of
https://github.com/alif-type/amiri/blob/master/AmiriQuranColored.ttf, 
Khaled wrote that "is that [the code] uses the last palette color
for layers using paletteIndex 0xFFFF (special value that means use
text color)." and that 

local default       = colorvalues[#colorvalues] 

font-ocl.lua is faulty)

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



More information about the ntg-context mailing list