* src/autofit/afgsub.c (af_map_lookup): Fix handling of lookup type 7.

Fixes issue #1356.
This commit is contained in:
Werner Lemberg 2025-09-10 14:10:23 +02:00
parent 36f917cc6a
commit 53b9319bff

View file

@ -649,6 +649,8 @@
{
FT_Error error;
FT_UInt real_lookupType = lookupType;
FT_Byte* subtable = table + FT_NEXT_USHORT( p );
@ -657,11 +659,11 @@
FT_Byte* q = subtable + 2;
lookupType = FT_NEXT_USHORT( q );
subtable += FT_PEEK_ULONG( q );
real_lookupType = FT_NEXT_USHORT( q );
subtable += FT_PEEK_ULONG( q );
}
if ( lookupType == 1 )
if ( real_lookupType == 1 )
{
FT_UInt format = FT_PEEK_USHORT( subtable );