From 24650624c812368e3900e276aaca2dc94b737af8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Jan 2022 13:53:21 -0700 Subject: [PATCH] [font] Fix build with no-var configs --- src/hb-font.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-font.cc b/src/hb-font.cc index 9de9f9ac0..5bd5283dd 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -1544,8 +1544,10 @@ hb_font_create (hb_face_t *face) hb_ot_font_set_funcs (font); #endif +#ifndef HB_NO_VAR if (face && face->index >> 16) hb_font_set_var_named_instance (font, (face->index >> 16) - 1); +#endif return font; }