diff --git a/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c b/source/texk/web2c/luatexdir/luaharfbuzz/src/luaharfbuzz/face.c index acd4f99038fbd40a79cd40cf3b80585d53744f5c..ddb05581fae37e18e1d2bd27b0249ba7ac19bd8b 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 c65eeafbff345c5d91bd1fbb8d25ed1cebea4e87..d0457a3cf064ab641d3c60b59ece091fbfd8c6c1 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