diff options
Diffstat (limited to 'tex/context/base/font-ini.lua')
-rw-r--r-- | tex/context/base/font-ini.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/font-ini.lua b/tex/context/base/font-ini.lua index 16fcf7271..d4adf360b 100644 --- a/tex/context/base/font-ini.lua +++ b/tex/context/base/font-ini.lua @@ -49,7 +49,8 @@ do local unset_attribute = node.unset_attribute function fonts.color.set(n,c) - set_attribute(n,attribute,mapping[c] or -1) + -- local mc = mapping[c] if mc then unset_attribute((n,attribute) else set_attribute(n,attribute,mc) end + set_attribute(n,attribute,mapping[c] or -1) -- also handles -1 now end function fonts.color.reset(n) unset_attribute(n,attribute) |