From 4d31662b5da20790f6f860cec8f5fdabf48210f0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 10 Apr 2019 15:40:03 -0400 Subject: [PATCH] Don't install ot-font funcs on new fonts if HB_NO_OT_FONT defined Currently linker cannot GC hb-ot-font completely because we install it on fonts by default. Don't do that if HB_NO_OT_FONT defined. Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-font.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-font.cc b/src/hb-font.cc index 817a1a7..20daefd 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -1347,8 +1347,10 @@ hb_font_create (hb_face_t *face) { hb_font_t *font = _hb_font_create (face); +#if !defined(HB_NO_OT_FONT) /* Install our in-house, very lightweight, funcs. */ hb_ot_font_set_funcs (font); +#endif return font; } -- 2.7.4