Hi Freetype Develop Team:
We find a bug when use Freetype 2.3.11 Bug, All Postscript Scipt 3
Type 42 download font FT_Load_Glyph() report error.
But Freetype 2.2.1 is OK, After Tracing we, find the problem are
caused by below code in function load_truetype_glyph() in ttgload.c:
if ( loader->byte_len > 0 )
{
#if 1
/* Jimmy, 2009/12/25, Modify for test.ps, all type 42 font not work
*/
if ((!loader->glyf_offset
)&&(face->root.internal->incremental_interface == NULL))
#else
if ( !loader->glyf_offset )
#endif
{
FT_TRACE2(( "no `glyf' table but non-zero `loca' entry\n" ));
error = TT_Err_Invalid_Table;
goto Exit;
}
When (face->root.internal->incremental_interface != NULL) (type 42 soft
font), loader->byte_len will > 0, and loader->glyf_offset maybe be 0, it is
valid case, should not report error.
We give our fixed code for your reference.
Best Regards
Jimmy
_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel