summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luaotfload-colors.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 98549c8..576a432 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -315,7 +315,16 @@ end
local color_callback_activated = 0
local add_to_callback = luatexbase.add_to_callback
-local priority_in_callback = luatexbase.priority_in_callback
+local function priority_in_callback (name,description)
+ for i,v in ipairs(luatexbase.callback_descriptions(name))
+ do
+ if v == description then
+ return i
+ end
+ end
+ return false
+end
+
--- unit -> unit
add_color_callback = function ( )