mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[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
61475b9fed
This commit is contained in:
parent
0f29b3faa7
commit
1a402847ed
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue