Module: wine Branch: refs/heads/master Commit: 8d643a7324e12357bbc3fc39463f445cf2285733 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8d643a7324e12357bbc3fc39...
Author: Phil Krylov phil@newstar.rinet.ru Date: Thu Feb 2 13:41:54 2006 +0100
gdi: Slant font automatically if no italic variant exists.
---
dlls/gdi/freetype.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index c4af124..a983d25 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -2828,6 +2828,18 @@ DWORD WineEngGetGlyphOutline(GdiFont fon needsTransform = TRUE; }
+ /* Slant transform */ + if (font->fake_italic) { + FT_Matrix slantMat; + + slantMat.xx = (1 << 16); + slantMat.xy = ((1 << 16) >> 2); + slantMat.yx = 0; + slantMat.yy = (1 << 16); + pFT_Matrix_Multiply(&slantMat, &transMat); + needsTransform = TRUE; + } + /* Rotation transform */ if(font->orientation) { FT_Matrix rotationMat;