* src/sfnt/ttkern.c (tt_face_get_kerning): Exit early if no table.

Fixes #1141.
This commit is contained in:
Werner Lemberg 2022-03-21 11:15:41 +01:00
parent a960be9e5e
commit fc15ebe0a6
1 changed files with 8 additions and 2 deletions

View File

@ -190,10 +190,16 @@
FT_Int result = 0;
FT_UInt count, mask;
FT_Byte* p = face->kern_table;
FT_Byte* p_limit = p + face->kern_table_size;
FT_Byte* p;
FT_Byte* p_limit;
if ( !face->kern_table )
return result;
p = face->kern_table;
p_limit = p + face->kern_table_size;
p += 4;
mask = 0x0001;