Fix handling of transformations if no renderer is present.

* src/base/ftobjs.c (FT_Load_Glyph): Thinko.
This commit is contained in:
Kal Conley 2011-10-15 09:33:11 +02:00 committed by Werner Lemberg
parent 298608d1d2
commit 72185cb5f4
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-10-15 Kal Conley <kcconley@gmail.com>
Fix handling of transformations if no renderer is present.
* src/base/ftobjs.c (FT_Load_Glyph): Thinko.
2011-10-15 Kal Conley <kcconley@gmail.com>
Fix conditions for autohinting.

View File

@ -757,11 +757,11 @@
else if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
{
/* apply `standard' transformation if no renderer is available */
if ( &internal->transform_matrix )
if ( internal->transform_flags & 1 )
FT_Outline_Transform( &slot->outline,
&internal->transform_matrix );
if ( &internal->transform_delta )
if ( internal->transform_flags & 2 )
FT_Outline_Translate( &slot->outline,
internal->transform_delta.x,
internal->transform_delta.y );