freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Freetype 2.3.11 Bug, All Type 42 download font FT_Load_Glyph(


From: Jimmy\(EG\)
Subject: [ft-devel] Freetype 2.3.11 Bug, All Type 42 download font FT_Load_Glyph() report error
Date: Fri, 25 Dec 2009 10:27:14 +0800

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]