ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font-ocl.lua:76: attempt to call a nil value (field 'register')
@ 2018-11-21 12:01 Ulrike Fischer
  2018-11-21 12:37 ` Ulrike Fischer
  0 siblings, 1 reply; 13+ messages in thread
From: Ulrike Fischer @ 2018-11-21 12:01 UTC (permalink / raw)
  To: ntg-context

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/

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

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-22 17:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-21 12:01 font-ocl.lua:76: attempt to call a nil value (field 'register') Ulrike Fischer
2018-11-21 12:37 ` Ulrike Fischer
2018-11-21 17:46   ` Hans Hagen
2018-11-21 18:04     ` Ulrike Fischer
2018-11-21 19:37       ` luigi scarso
2018-11-21 20:04         ` Ulrike Fischer
2018-11-22 12:50           ` Hans Hagen
2018-11-22 13:12             ` Ulrike Fischer
2018-11-22 13:46               ` luigi scarso
2018-11-22 15:14                 ` Ulrike Fischer
2018-11-22 15:34                   ` luigi scarso
2018-11-22 17:19                     ` luigi scarso
2018-11-22 14:09               ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).