mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-20 05:10:19 +01:00
* src/autofit/afgsub.c (af_map_lookup): Fix handling of lookup type 7.
Fixes issue #1356.
This commit is contained in:
parent
36f917cc6a
commit
53b9319bff
1 changed files with 5 additions and 3 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue