From 9e88b088ea2ddcb6f85584750eb3c989af101905 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 28 Sep 2016 16:46:10 +0100 Subject: Move fz_font definition to be private. Move the definition of fz_font to be in a private header file rather than in the public API. Add accessors for specific parts of the structure and use them as appropriate. The font flags, and the harfbuzz records remain public. This means that only 3 files now need access to the font implementation (font.c, pdf-font.c and pdf-type3.c). This may be able to be improved further in future. --- source/tools/murun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/murun.c b/source/tools/murun.c index 3ed0228f..14e28f70 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -2073,7 +2073,7 @@ static void ffi_new_Font(js_State *J) static void ffi_Font_getName(js_State *J) { fz_font *font = js_touserdata(J, 0, "fz_font"); - js_pushstring(J, font->name); + js_pushstring(J, fz_font_name(font)); } static void ffi_Font_encodeCharacter(js_State *J) -- cgit v1.2.3