diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-11-14 23:18:10 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-11-14 23:18:10 +0100 |
commit | 08473f11287cb263079c0435068312cbc6d736e8 (patch) | |
tree | 2548fb8b58e18a507e54fa8426a79c6956c3ef2e /source/luametatex/source/luaoptional/lmthb.c | |
parent | dd0a80e5ec42f60832e7d5dc47210e6f3545c400 (diff) | |
download | context-08473f11287cb263079c0435068312cbc6d736e8.tar.gz |
2022-11-14 22:56:00
Diffstat (limited to 'source/luametatex/source/luaoptional/lmthb.c')
-rw-r--r-- | source/luametatex/source/luaoptional/lmthb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/luametatex/source/luaoptional/lmthb.c b/source/luametatex/source/luaoptional/lmthb.c index d853256cf..03c4a1720 100644 --- a/source/luametatex/source/luaoptional/lmthb.c +++ b/source/luametatex/source/luaoptional/lmthb.c @@ -3,6 +3,7 @@ */ # include "luametatex.h" +# include "lmtoptional.h" /*tex @@ -473,9 +474,9 @@ static int hblib_load_font(lua_State * L) hb_face_t *face = hblib_state.hb_face_create(blob, id); unsigned int scale = hblib_state.hb_face_get_upem(face); hb_font_t *font = hblib_state.hb_font_create(face); + hblib_data *data = lua_newuserdatauv(L, sizeof(data), 0); hblib_state.hb_font_set_scale(font, scale, scale); hblib_state.hb_ot_font_set_funcs(font); - hblib_data *data = lua_newuserdatauv(L, sizeof(data), 0); data->font = font; luaL_getmetatable(L, HBLIB_METATABLE); lua_setmetatable(L, -2); |