freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] FT_Load_Glyph bugs?


From: Kal Conley
Subject: [ft-devel] FT_Load_Glyph bugs?
Date: Sat, 15 Oct 2011 01:47:26 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111012 Thunderbird/8.0

Hi,

I was looking at the FT_Load_Glyph source and the following got my attention:

          /* apply `standard' transformation if no renderer is available */
          if ( &internal->transform_matrix )
            FT_Outline_Transform( &slot->outline,
&internal->transform_matrix );

          if ( &internal->transform_delta )
            FT_Outline_Translate( &slot->outline,
                                  internal->transform_delta.x,
                                  internal->transform_delta.y );

Both of those ifs appear to always be true, maybe someone meant the following?

          /* apply `standard' transformation if no renderer is available */
          if ( internal->transform_flags & 1 )
            FT_Outline_Transform( &slot->outline,
&internal->transform_matrix );

          if ( internal->transform_flags & 2 )
            FT_Outline_Translate( &slot->outline,
                                  internal->transform_delta.x,
                                  internal->transform_delta.y );

--Kal



reply via email to

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