From 1a402847ed307af7e72fcd9e15bb970b4285690d Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Wed, 22 May 2019 23:14:42 +0200 Subject: [PATCH] [FREETYPE] Fix regression CORE-16041 Font/Text Rotation Angles Too Small Thanks to the patches author Doug Lyons and the reviewers hbelusca and Katayama Hirofumi MZ. The regression was introduced by 0.4.13-dev-24-g 61475b9fede67b4eb2236c4ff9a495052c66cda9 --- win32ss/gdi/ntgdi/freetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index f73c1c09022..126040c88f7 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -719,7 +719,8 @@ VOID FASTCALL IntWidthMatrix(FT_Face face, FT_Matrix *pmat, LONG lfWidth) VOID FASTCALL IntEscapeMatrix(FT_Matrix *pmat, LONG lfEscapement) { FT_Vector vecAngle; - FT_Angle angle = FT_FixedFromFloat((FLOAT)(lfEscapement * M_PI) / (FLOAT)(180 * 10)); + /* Convert from angle in tenths of degrees to 'FT_Angle' degrees */ + FT_Angle angle = FT_FixedFromFloat((FLOAT)lfEscapement / 10); FT_Vector_Unit(&vecAngle, angle); pmat->xx = vecAngle.x; pmat->xy = -vecAngle.y;