Make FT_Set_Transform work if no renderer is available.
* src/base/ftobjs.c (FT_Load_Glyph): Apply `standard' transformation if no renderer is compiled into the library.
This commit is contained in:
parent
d40cd0b4a4
commit
13fa21bd5e
@ -1,3 +1,10 @@
|
||||
2010-01-14 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Make FT_Set_Transform work if no renderer is available.
|
||||
|
||||
* src/base/ftobjs.c (FT_Load_Glyph): Apply `standard' transformation
|
||||
if no renderer is compiled into the library.
|
||||
|
||||
2010-01-14 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
Fix compilation warning.
|
||||
|
@ -742,6 +742,19 @@
|
||||
renderer, slot,
|
||||
&internal->transform_matrix,
|
||||
&internal->transform_delta );
|
||||
else if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
|
||||
{
|
||||
/* 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 );
|
||||
}
|
||||
|
||||
/* transform advance */
|
||||
FT_Vector_Transform( &slot->advance, &internal->transform_matrix );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user