Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eec01270
Commit
eec01270
authored
May 01, 2023
by
Piotr Caban
Committed by
Alexandre Julliard
May 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Use only TrueType fonts in print processor.
parent
857b25e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
printproc.c
dlls/wineps.drv/printproc.c
+14
-1
No files found.
dlls/wineps.drv/printproc.c
View file @
eec01270
...
...
@@ -185,8 +185,21 @@ static BOOL CDECL font_GetTextMetrics(PHYSDEV dev, TEXTMETRICW *metrics)
static
HFONT
CDECL
font_SelectFont
(
PHYSDEV
dev
,
HFONT
hfont
,
UINT
*
aa_flags
)
{
HFONT
tt_font
,
old_font
;
LOGFONTW
lf
;
*
aa_flags
=
GGO_BITMAP
;
return
SelectObject
(
dev
->
hdc
,
hfont
)
?
hfont
:
0
;
if
(
!
GetObjectW
(
hfont
,
sizeof
(
lf
),
&
lf
))
return
0
;
lf
.
lfOutPrecision
=
OUT_TT_ONLY_PRECIS
;
tt_font
=
CreateFontIndirectW
(
&
lf
);
if
(
!
tt_font
)
return
0
;
old_font
=
SelectObject
(
dev
->
hdc
,
tt_font
);
DeleteObject
(
tt_font
);
return
old_font
?
hfont
:
0
;
}
static
const
struct
gdi_dc_funcs
font_funcs
=
...
...
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