summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-03-03 17:09:01 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-03-03 17:09:01 +0200
commit42595d28a023af84e19fa6936acb2b744baffad2 (patch)
treed2adb1549c286530b469c3434a92933dafa7a66b
parent3de6042164c3235e96d4561c3b798398edb214cb (diff)
downloadluaotfload-42595d28a023af84e19fa6936acb2b744baffad2.tar.gz
Rename fonts.ids -> fonts.identifiers
-rw-r--r--otfl-font-clr.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/otfl-font-clr.lua b/otfl-font-clr.lua
index e02d22a..a1fd8ff 100644
--- a/otfl-font-clr.lua
+++ b/otfl-font-clr.lua
@@ -94,8 +94,8 @@ local sbox = node.id('sub_box')
local function lookup_next_color(head)
for n in node.traverse(head) do
if n.id == glyph then
- if fonts.ids[n.font] and fonts.ids[n.font].color then
- return fonts.ids[n.font].color
+ if fonts.identifiers[n.font] and fonts.identifiers[n.font].color then
+ return fonts.identifiers[n.font].color
else
return -1
end
@@ -119,7 +119,7 @@ local function node_colorize(head, current_color, next_color)
local next_color_in = lookup_next_color(n.next) or next_color
n.list, current_color = node_colorize(n.list, current_color, next_color_in)
elseif n.id == glyph then
- local tfmdata = fonts.ids[n.font]
+ local tfmdata = fonts.identifiers[n.font]
if tfmdata and tfmdata.color then
if tfmdata.color ~= current_color then
local pushcolor = hex_to_rgba(tfmdata.color)