[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Make nominal glph slots integers in harf (53b70cb)

Marcel Fabian Krüger tex at 2krueger.de
Fri May 21 19:41:44 CEST 2021


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/53b70cbdb60101e2869d879e9d8daf576b0c8f82

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

commit 53b70cbdb60101e2869d879e9d8daf576b0c8f82
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri May 21 19:41:44 2021 +0200

    Make nominal glph slots integers in harf


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

53b70cbdb60101e2869d879e9d8daf576b0c8f82
 src/luaotfload-harf-define.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/luaotfload-harf-define.lua b/src/luaotfload-harf-define.lua
index c4f171d..f7715eb 100644
--- a/src/luaotfload-harf-define.lua
+++ b/src/luaotfload-harf-define.lua
@@ -39,6 +39,7 @@ local gpostag = hb.Tag.new("GPOS")
 local invalid_l         = hb.Language.new()
 local invalid_s         = hb.Script.new()
 
+local tointeger = math.tointeger
 local floor = math.floor
 local function round(x)
   return floor(x + 0.5)
@@ -71,7 +72,7 @@ local get_designsize do
 end
 
 local containers = luaotfload.fontloader.containers
-local hbcacheversion = 1.2
+local hbcacheversion = 1.3
 local facecache = containers.define("fonts", "hb", hbcacheversion, true)
 
 local function loadfont(spec)
@@ -174,7 +175,7 @@ local function loadfont(spec)
       local glyph = hbfont:get_nominal_glyph(uni)
       if glyph then
         characters[uni] = glyph
-        nominals[glyph] = uni
+        nominals[glyph] = tointeger(uni)
       end
     end
 





More information about the latex3-commits mailing list.