[sfnt] Accept version 3 of `EBLC' and `CBLC' tables also.

* src/sfnt/ttsbit.c (tt_face_load_sbit): Implement it.
This commit is contained in:
Behdad Esfahbod 2015-11-08 10:00:34 +01:00 committed by Werner Lemberg
parent be32b168ac
commit abb33121ee
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,10 @@
2015-11-06 Philipp Knechtges <philipp-dev@knechtges.com>
2015-11-08 Behdad Esfahbod <behdad@behdad.org>
[sfnt] Accept version 3 of `EBLC' and `CBLC' tables also.
* src/sfnt/ttsbit.c (tt_face_load_sbit): Implement it.
2015-11-08 Philipp Knechtges <philipp-dev@knechtges.com>
[autofit] Don't distort (latin) glyphs too much (#46195).

View File

@ -104,7 +104,8 @@
version = FT_NEXT_LONG( p );
num_strikes = FT_NEXT_ULONG( p );
if ( ( (FT_ULong)version & 0xFFFF0000UL ) != 0x00020000UL )
if ( ( (FT_ULong)version & 0xFFFF0000UL ) != 0x00020000UL &&
( (FT_ULong)version & 0xFFFF0000UL ) != 0x00030000UL )
{
error = FT_THROW( Unknown_File_Format );
goto Exit;