From 1432df102ebf206592f92677f48bb950871675b3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 Jun 2019 18:32:40 -0700 Subject: [PATCH] [config] Disable hb-ot-font code if HB_NO_OT_FONT Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-ot-font.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 0707a2ff8..5895c7b6b 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -26,6 +26,8 @@ #include "hb.hh" +#ifndef HB_NO_OT_FONT + #include "hb-ot.h" #include "hb-font.hh" @@ -317,3 +319,6 @@ hb_ot_font_set_funcs (hb_font_t *font) &font->face->table, nullptr); } + + +#endif