[ft] Add missing lock to kerning function

This commit is contained in:
Behdad Esfahbod 2022-05-20 12:17:31 -06:00
parent da4b6f1527
commit 05e82aa12e
1 changed files with 1 additions and 0 deletions

View File

@ -426,6 +426,7 @@ hb_ft_get_glyph_h_kerning (hb_font_t *font,
void *user_data HB_UNUSED)
{
const hb_ft_font_t *ft_font = (const hb_ft_font_t *) font_data;
hb_lock_t lock (ft_font->lock);
FT_Vector kerningv;
FT_Kerning_Mode mode = font->x_ppem ? FT_KERNING_DEFAULT : FT_KERNING_UNFITTED;