* src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).
This commit is contained in:
parent
4a19a53d5a
commit
8930cc9618
|
@ -1,3 +1,7 @@
|
||||||
|
2020-02-12 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Ignore version (#57708).
|
||||||
|
|
||||||
2020-02-04 Werner Lemberg <wl@gnu.org>
|
2020-02-04 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
|
* src/truetype/ttinterp.c (TT_RunIns): Adjust loop counter (#57732).
|
||||||
|
|
|
@ -3776,14 +3776,16 @@
|
||||||
if ( !p || face->cmap_size < 4 )
|
if ( !p || face->cmap_size < 4 )
|
||||||
return FT_THROW( Invalid_Table );
|
return FT_THROW( Invalid_Table );
|
||||||
|
|
||||||
/* only recognize format 0 */
|
/* Version 1.8.3 of the OpenType specification contains the following */
|
||||||
if ( TT_NEXT_USHORT( p ) != 0 )
|
/* (https://docs.microsoft.com/en-us/typography/opentype/spec/cmap): */
|
||||||
{
|
/* */
|
||||||
FT_ERROR(( "tt_face_build_cmaps:"
|
/* The 'cmap' table version number remains at 0x0000 for fonts that */
|
||||||
" unsupported `cmap' table format = %d\n",
|
/* make use of the newer subtable formats. */
|
||||||
TT_PEEK_USHORT( p - 2 ) ));
|
/* */
|
||||||
return FT_THROW( Invalid_Table );
|
/* This essentially means that a version format test is useless. */
|
||||||
}
|
|
||||||
|
/* ignore format */
|
||||||
|
p += 2;
|
||||||
|
|
||||||
num_cmaps = TT_NEXT_USHORT( p );
|
num_cmaps = TT_NEXT_USHORT( p );
|
||||||
limit = table + face->cmap_size;
|
limit = table + face->cmap_size;
|
||||||
|
|
Loading…
Reference in New Issue