diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-03-03 17:09:01 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-03-03 17:09:01 +0200 |
commit | 42595d28a023af84e19fa6936acb2b744baffad2 (patch) | |
tree | d2adb1549c286530b469c3434a92933dafa7a66b /otfl-font-clr.lua | |
parent | 3de6042164c3235e96d4561c3b798398edb214cb (diff) | |
download | luaotfload-42595d28a023af84e19fa6936acb2b744baffad2.tar.gz |
Rename fonts.ids -> fonts.identifiers
Diffstat (limited to 'otfl-font-clr.lua')
-rw-r--r-- | otfl-font-clr.lua | 6 |
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) |