gdi: Slant font automatically if no italic variant exists.

This commit is contained in:
Phil Krylov 2006-02-02 13:41:54 +01:00 committed by Alexandre Julliard
parent 4e20622e4d
commit 8d643a7324
1 changed files with 12 additions and 0 deletions

View File

@ -2828,6 +2828,18 @@ DWORD WineEngGetGlyphOutline(GdiFont font, UINT glyph, UINT format,
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;