[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Correct typo reported by @marcpenninga (c8590eb)

Marcel Fabian Krüger tex at 2krueger.de
Wed Apr 6 18:31:00 CEST 2022


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

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

commit c8590ebf2b4b1af5ca95a63466a7a2af5a639ca1
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Apr 6 18:31:00 2022 +0200

    Correct typo reported by @marcpenninga
    
    Fixes #222.


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

c8590ebf2b4b1af5ca95a63466a7a2af5a639ca1
 src/luaotfload-harf-var-ttf.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-harf-var-ttf.lua b/src/luaotfload-harf-var-ttf.lua
index d962883..6e19083 100644
--- a/src/luaotfload-harf-var-ttf.lua
+++ b/src/luaotfload-harf-var-ttf.lua
@@ -166,7 +166,7 @@ local function parse_glyf(loca, glyf, gid)
         payload_length = payload_length + 8
       end
       if flags & 0x120 == 0x100 then -- Only applies to the last character
-        payload_length = payload_length + 2 + sio.readcardinal2(offset + payload_length)
+        payload_length = payload_length + 2 + sio.readcardinal2(glyf, offset + payload_length)
       end
       component.flags = flags
       component.payload = glyf:sub(offset, offset + payload_length - 1)





More information about the latex3-commits mailing list.