From 754cf440bf80ced36461a98a5d4607a700f44fd3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 10 Oct 2018 10:04:05 -0400 Subject: [PATCH] Minor --- src/hb-ot-shape-fallback.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-shape-fallback.cc b/src/hb-ot-shape-fallback.cc index 556c34089..62104b3a8 100644 --- a/src/hb-ot-shape-fallback.cc +++ b/src/hb-ot-shape-fallback.cc @@ -460,6 +460,8 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) { + if (!font->has_glyph_h_kerning_func () && !font->has_glyph_v_kerning_func ()) + return; hb_ot_shape_fallback_kern_driver_t driver (font, buffer); hb_kern_machine_t machine (driver); machine.kern (font, buffer, plan->kern_mask);