From eeed71decaca463c33a0c4b8aca134d5877f8346 Mon Sep 17 00:00:00 2001 From: Luigi Scarso <luigi.scarso@gmail.com> Date: Sat, 3 Aug 2019 13:23:16 +0000 Subject: [PATCH] updated luaharfbuzz --- .../luatexdir/luaharfbuzz/src/luaharfbuzz/face.c | 12 ++++++------ source/texk/web2c/luatexdir/luatex_svnversion.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c b/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c index acd4f9903..ddb05581f 100644 --- a/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c +++ b/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c @@ -105,7 +105,7 @@ static int face_get_table_tags(lua_State *L) { count = STATIC_ARRAY_SIZE; hb_face_get_table_tags(*f, offset, &count, tags); for (i = 0; i < count; i++) { - lua_pushnumber(L, i + 1); + lua_pushnumber(L, offset + i + 1); Tag *tp = (Tag *)lua_newuserdata(L, sizeof(*tp)); luaL_getmetatable(L, "harfbuzz.Tag"); @@ -137,7 +137,7 @@ static int face_ot_layout_get_script_tags(lua_State *L) { count = STATIC_ARRAY_SIZE; hb_ot_layout_table_get_script_tags(*face, *table, offset, &count, tags); for (i = 0; i < count; i++) { - lua_pushnumber(L, i + 1); + lua_pushnumber(L, offset + i + 1); Tag *tp = (Tag *)lua_newuserdata(L, sizeof(*tp)); luaL_getmetatable(L, "harfbuzz.Tag"); @@ -170,7 +170,7 @@ static int face_ot_layout_get_language_tags(lua_State *L) { count = STATIC_ARRAY_SIZE; hb_ot_layout_script_get_language_tags(*face, *table, script_index, offset, &count, tags); for (i = 0; i < count; i++) { - lua_pushnumber(L, i + 1); + lua_pushnumber(L, offset + i + 1); Tag *tp = (Tag *)lua_newuserdata(L, sizeof(*tp)); luaL_getmetatable(L, "harfbuzz.Tag"); @@ -204,7 +204,7 @@ static int face_ot_layout_get_feature_tags(lua_State *L) { count = STATIC_ARRAY_SIZE; hb_ot_layout_language_get_feature_tags(*face, *table, script_index, language_index, offset, &count, tags); for (i = 0; i < count; i++) { - lua_pushnumber(L, i + 1); + lua_pushnumber(L, offset + i + 1); Tag *tp = (Tag *)lua_newuserdata(L, sizeof(*tp)); luaL_getmetatable(L, "harfbuzz.Tag"); @@ -320,7 +320,7 @@ static int face_ot_color_palette_get_colors(lua_State *L) { for (i = 0; i < count; i++) { hb_color_t color = colors[i]; - lua_pushnumber(L, i+1); // 1-indexed key parent table + lua_pushnumber(L, offset + i + 1); // 1-indexed key parent table lua_createtable(L, 0, 4); // child table lua_pushinteger(L, hb_color_get_red(color)); @@ -371,7 +371,7 @@ static int face_ot_color_glyph_get_layers(lua_State *L) { if (color_index != 0xFFFF) color_index++; // make it 1-indexed - lua_pushnumber(L, i+1); // 1-indexed key parent table + lua_pushnumber(L, offset + i + 1); // 1-indexed key parent table lua_createtable(L, 0, 2); // child table lua_pushinteger(L, layer.glyph); diff --git a/source/texk/web2c/luatexdir/luatex_svnversion.h b/source/texk/web2c/luatexdir/luatex_svnversion.h index c65eeafbf..d0457a3cf 100644 --- a/source/texk/web2c/luatexdir/luatex_svnversion.h +++ b/source/texk/web2c/luatexdir/luatex_svnversion.h @@ -1 +1 @@ -#define luatex_svn_revision 7178 +#define luatex_svn_revision 7179 -- GitLab