[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Don't modify feature value before passing to HarfBuzz (7acf651)

Marcel Fabian Krüger tex at 2krueger.de
Thu Sep 9 17:06:16 CEST 2021


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/7acf6519981c59152a55043181fc078baafcc070

>---------------------------------------------------------------

commit 7acf6519981c59152a55043181fc078baafcc070
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Sep 9 17:06:16 2021 +0200

    Don't modify feature value before passing to HarfBuzz
    
    At least for cv.. this is compatible with both node and XeTeX.


>---------------------------------------------------------------

7acf6519981c59152a55043181fc078baafcc070
 src/luaotfload-harf-define.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-define.lua b/src/luaotfload-harf-define.lua
index 6b6a99e..751c4a1 100644
--- a/src/luaotfload-harf-define.lua
+++ b/src/luaotfload-harf-define.lua
@@ -393,7 +393,7 @@ fonts.readers.harf = function(spec)
         val = (val and '+' or '-')..key
         hb_features[#hb_features + 1] = hb.Feature.new(val)
       elseif tonumber(val) then
-        val = '+'..key..'='..tonumber(val) - 1
+        val = '+'..key..'='..tonumber(val)
         hb_features[#hb_features + 1] = hb.Feature.new(val)
       end
     end





More information about the latex3-commits mailing list.