Commit 8d643a73 authored by Phil Krylov's avatar Phil Krylov Committed by Alexandre Julliard

gdi: Slant font automatically if no italic variant exists.

parent 4e20622e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment