[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix handling of payload when scanning TTF components (65306c1)

Marcel Fabian Krüger tex at 2krueger.de
Thu Jun 2 00:50:23 CEST 2022


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

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

commit 65306c1674a24279d3b0d22337f931aa39665621
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Jun 2 00:50:23 2022 +0200

    Fix handling of payload when scanning TTF components
    
    Fixes #225.


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

65306c1674a24279d3b0d22337f931aa39665621
 src/luaotfload-harf-var-ttf.lua | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/luaotfload-harf-var-ttf.lua b/src/luaotfload-harf-var-ttf.lua
index 2adeac1..53950f3 100644
--- a/src/luaotfload-harf-var-ttf.lua
+++ b/src/luaotfload-harf-var-ttf.lua
@@ -171,6 +171,7 @@ local function parse_glyf(loca, glyf, gid)
       component.flags = flags
       component.payload = glyf:sub(offset, offset + payload_length - 1)
       components[#components+1] = component
+      offset = offset + payload_length
     until flags & 0x20 == 0
     return components
   else





More information about the latex3-commits mailing list.