[ft] Add missing lock to kerning function

This commit is contained in:
Behdad Esfahbod committed 2022-05-20 17:36:59 -06:00
1 parent da4b6f1527
commit 05e82aa12e
1 file changed
+1
+1
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;