21 Nov
2018
21 Nov
'18
12:01 p.m.
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/