[latex3-commits] [latex3/luaotfload] dev: Fix ttf variable fonts with many points (14cdbc79)

github at latex-project.org github at latex-project.org
Mon May 15 20:37:44 CEST 2023


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

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

commit 14cdbc790583e219fe7956068b48f0f5182de59b
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon May 15 20:37:44 2023 +0200

    Fix ttf variable fonts with many points


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

14cdbc790583e219fe7956068b48f0f5182de59b
 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 4a72aad1..578d6030 100644
--- a/src/luaotfload-harf-var-ttf.lua
+++ b/src/luaotfload-harf-var-ttf.lua
@@ -350,7 +350,7 @@ local function read_points(gvar_data, offset)
     return true, offset
   end
   if point_count & 0x80 ~= 0 then
-    point_count = ((point_count & 0x7F) << 8) | sio.readcardinal1(gvar_data, suboffset)
+    point_count = ((point_count & 0x7F) << 8) | sio.readcardinal1(gvar_data, offset)
     offset = offset + 1
   end
   local points = lua.newtable(point_count, 0)





More information about the latex3-commits mailing list.