gdi32: Replace DC transform by font scaling for bitmap fonts.
This commit is contained in:
parent
f322f70a69
commit
21cdaeea4b
|
@ -3555,6 +3555,12 @@ found:
|
|||
/* Windows uses integer scaling factors for bitmap fonts */
|
||||
INT scale, scaled_height;
|
||||
|
||||
/* FIXME: rotation of bitmap fonts is ignored */
|
||||
height = abs(GDI_ROUND( (double)height * ret->font_desc.matrix.eM22 ));
|
||||
if (ret->aveWidth)
|
||||
ret->aveWidth = (double)ret->aveWidth * ret->font_desc.matrix.eM11;
|
||||
ret->font_desc.matrix.eM11 = ret->font_desc.matrix.eM22 = 1.0;
|
||||
|
||||
if (height != 0) height = diff;
|
||||
height += face->size.height;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "wine/test.h"
|
||||
|
||||
#define near_match(a, b) (abs((a) - (b)) <= 4)
|
||||
#define near_match(a, b) (abs((a) - (b)) <= 6)
|
||||
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
|
||||
|
||||
LONG (WINAPI *pGdiGetCharDimensions)(HDC hdc, LPTEXTMETRICW lptm, LONG *height);
|
||||
|
|
Loading…
Reference in New Issue