I tried to register a demo colorpalette:

\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 },


and got the error 

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

(I wanted to test the coloring of
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 

If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net

Reply via email to