mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
wineps: Fix download font escapement.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54956
This commit is contained in:
parent
189606e4bf
commit
d225fb8e71
|
@ -258,7 +258,6 @@ BOOL PSDRV_WriteSetDownloadFont(print_ctx *ctx, BOOL vertical)
|
|||
LOGFONTW lf;
|
||||
UINT ppem;
|
||||
XFORM xform;
|
||||
INT escapement;
|
||||
|
||||
assert(ctx->font.fontloc == Download);
|
||||
|
||||
|
@ -281,7 +280,7 @@ BOOL PSDRV_WriteSetDownloadFont(print_ctx *ctx, BOOL vertical)
|
|||
|
||||
if(GetGraphicsMode(ctx->hdc) == GM_COMPATIBLE)
|
||||
{
|
||||
if (xform.eM22 < 0) ctx->font.escapement = -ctx->font.escapement;
|
||||
if (xform.eM22 < 0) lf.lfEscapement = -lf.lfEscapement;
|
||||
xform.eM11 = xform.eM22 = fabs(xform.eM22);
|
||||
xform.eM21 = xform.eM12 = 0;
|
||||
}
|
||||
|
@ -327,11 +326,10 @@ BOOL PSDRV_WriteSetDownloadFont(print_ctx *ctx, BOOL vertical)
|
|||
}
|
||||
}
|
||||
|
||||
escapement = ctx->font.escapement;
|
||||
if (vertical)
|
||||
escapement += 900;
|
||||
lf.lfEscapement += 900;
|
||||
|
||||
PSDRV_WriteSetFont(ctx, ps_name, ctx->font.size, escapement,
|
||||
PSDRV_WriteSetFont(ctx, ps_name, ctx->font.size, lf.lfEscapement,
|
||||
is_fake_italic( ctx->hdc ));
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, ps_name);
|
||||
|
|
|
@ -289,9 +289,6 @@ typedef struct {
|
|||
matrix size;
|
||||
PSCOLOR color;
|
||||
enum fontset set; /* Have we done a setfont yet */
|
||||
|
||||
/* These are needed by PSDRV_ExtTextOut */
|
||||
int escapement;
|
||||
} PSFONT;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in a new issue