Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d225fb8e
Commit
d225fb8e
authored
May 22, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Fix download font escapement.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54956
parent
189606e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
download.c
dlls/wineps.drv/download.c
+3
-5
psdrv.h
dlls/wineps.drv/psdrv.h
+0
-3
No files found.
dlls/wineps.drv/download.c
View file @
d225fb8e
...
...
@@ -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
.
e
scapement
;
if
(
xform
.
eM22
<
0
)
lf
.
lfEscapement
=
-
lf
.
lfE
scapement
;
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
)
e
scapement
+=
900
;
lf
.
lfE
scapement
+=
900
;
PSDRV_WriteSetFont
(
ctx
,
ps_name
,
ctx
->
font
.
size
,
e
scapement
,
PSDRV_WriteSetFont
(
ctx
,
ps_name
,
ctx
->
font
.
size
,
lf
.
lfE
scapement
,
is_fake_italic
(
ctx
->
hdc
));
HeapFree
(
GetProcessHeap
(),
0
,
ps_name
);
...
...
dlls/wineps.drv/psdrv.h
View file @
d225fb8e
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment