[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Preserve case and type for color feature (5bbbcbb)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Jun 6 16:11:50 CEST 2022
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/5bbbcbb889674797f6ca503b8d47ffd92a025b0e
>---------------------------------------------------------------
commit 5bbbcbb889674797f6ca503b8d47ffd92a025b0e
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Jun 6 16:11:50 2022 +0200
Preserve case and type for color feature
>---------------------------------------------------------------
5bbbcbb889674797f6ca503b8d47ffd92a025b0e
src/luaotfload-colors.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 6788c35..0637d07 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -437,6 +437,13 @@ function luaotfload.set_transparentparser(cb)
custom_parsetransparent = cb
end
+setmetatable(fonts.handlers.otf.statistics.usedfeatures.color, {
+ __index = function(t, k)
+ t[k] = k
+ return k
+ end,
+})
+
return function ()
logreport = luaotfload.log.report
if not fonts then
More information about the latex3-commits
mailing list.