diff options
Diffstat (limited to 'src/base/ftsynth.c')
-rw-r--r-- | src/base/ftsynth.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c index ed17be4b3..6ec25e13e 100644 --- a/src/base/ftsynth.c +++ b/src/base/ftsynth.c @@ -47,7 +47,7 @@ FT_GlyphSlot_Oblique( FT_GlyphSlot slot ) { /* Value '0x0366A' corresponds to a shear angle of about 12 degrees. */ - FT_GlyphSlot_Slant( slot, 0x0366A ); + FT_GlyphSlot_Slant( slot, 0x0366A, 0 ); } @@ -55,7 +55,8 @@ FT_EXPORT_DEF( void ) FT_GlyphSlot_Slant( FT_GlyphSlot slot, - FT_Fixed slant ) + FT_Fixed xslant, + FT_Fixed yslant ) { FT_Matrix transform; FT_Outline* outline; @@ -74,9 +75,9 @@ /* For italic, simply apply a shear transform */ transform.xx = 0x10000L; - transform.yx = 0x00000L; + transform.yx = -yslant; - transform.xy = slant; + transform.xy = xslant; transform.yy = 0x10000L; FT_Outline_Transform( outline, &transform ); |