diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2016-10-02 13:23:30 -0400 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-07 16:56:46 +0100 |
commit | f5263de25f42552fce13944b23238676503d0e9d (patch) | |
tree | 134493fbf676873854a37a8e9a7351f13a8c4713 /source/tools | |
parent | 21b695f447ad3fa852e11a4f20b0576ab75b527f (diff) | |
download | mupdf-f5263de25f42552fce13944b23238676503d0e9d.tar.xz |
Add ctx to fz_font functions.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index ea9e1d51..e3588954 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -2185,8 +2185,9 @@ static void ffi_new_Font(js_State *J) static void ffi_Font_getName(js_State *J) { + fz_context *ctx = js_getcontext(J); fz_font *font = js_touserdata(J, 0, "fz_font"); - js_pushstring(J, fz_font_name(font)); + js_pushstring(J, fz_font_name(ctx, font)); } static void ffi_Font_encodeCharacter(js_State *J) |