[kern] Minor

This commit is contained in:
Behdad Esfahbod 2018-10-10 10:18:39 -04:00
parent e655fd38cf
commit 8d00c39bfc
1 changed files with 3 additions and 1 deletions

View File

@ -460,7 +460,9 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
hb_font_t *font, hb_font_t *font,
hb_buffer_t *buffer) hb_buffer_t *buffer)
{ {
if (!font->has_glyph_h_kerning_func () && !font->has_glyph_v_kerning_func ()) if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction) ?
!font->has_glyph_h_kerning_func () :
!font->has_glyph_v_kerning_func ())
return; return;
hb_ot_shape_fallback_kern_driver_t driver (font, buffer); hb_ot_shape_fallback_kern_driver_t driver (font, buffer);
hb_kern_machine_t<hb_ot_shape_fallback_kern_driver_t> machine (driver); hb_kern_machine_t<hb_ot_shape_fallback_kern_driver_t> machine (driver);