* src/sfnt/ttkern.c (tt_face_get_kerning): Exit early if no table.
Fixes #1141.
This commit is contained in:
parent
a960be9e5e
commit
fc15ebe0a6
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue