Hello,

There is a bug in FT 2.1.10 when it loads PFM file for type 1.
In the function T1_Read_PFM, t1afm.c, it does not check for zero value
in dfPairKernTable field of Extension table. Apparently, zero means no
kerning table. It is zero in a number of fonts (e.g. Slogan Normal), but
the function does not check for zero, reads kerning table from the
beginning of the file, and fails with T1_Err_Unknown_File_Format.

/* Kerning offset is 14 bytes from start of extensions table. */
    p += 14;
    p = start + LITTLE_ENDIAN_UINT( p );

Should be:

p += 14;

if (!LITTLE_ENDIAN_UINT( p ))
  goto Exit;

p = start + LITTLE_ENDIAN_UINT( p );

Sergey


_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to