[fallback-kern] Move buffer message to correct position

This commit is contained in:
Behdad Esfahbod 2022-01-29 10:24:38 -07:00
parent e986c12075
commit b47b3b9972
1 changed files with 3 additions and 3 deletions

View File

@ -497,14 +497,14 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
#endif
#ifndef HB_DISABLE_DEPRECATED
if (!buffer->message (font, "start fallback kern"))
return;
if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction) ?
!font->has_glyph_h_kerning_func () :
!font->has_glyph_v_kerning_func ())
return;
if (!buffer->message (font, "start fallback kern"))
return;
bool reverse = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
if (reverse)