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
08d9f9b6
Commit
08d9f9b6
authored
Aug 01, 2023
by
David Kahurani
Committed by
Alexandre Julliard
Aug 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use get_log_fontW in GdipGetLogFontW.
Signed-off-by:
David Kahurani
<
k.kahurani@gmail.com
>
parent
326a9e18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
font.c
dlls/gdiplus/font.c
+2
-11
No files found.
dlls/gdiplus/font.c
View file @
08d9f9b6
...
...
@@ -480,24 +480,15 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW
GdipMultiplyMatrix
(
&
matrix
,
&
graphics
->
gdi_transform
,
MatrixOrderAppend
);
transform_properties
(
graphics
,
&
matrix
,
FALSE
,
NULL
,
&
rel_height
,
&
angle
);
get_log_fontW
(
font
,
graphics
,
lf
);
lf
->
lfHeight
=
-
gdip_round
(
height
*
rel_height
);
lf
->
lfWidth
=
0
;
lf
->
lfEscapement
=
lf
->
lfOrientation
=
gdip_round
((
angle
/
M_PI
)
*
1800
.
0
);
if
(
lf
->
lfEscapement
<
0
)
{
lf
->
lfEscapement
+=
3600
;
lf
->
lfOrientation
+=
3600
;
}
lf
->
lfWeight
=
font
->
otm
.
otmTextMetrics
.
tmWeight
;
lf
->
lfItalic
=
font
->
otm
.
otmTextMetrics
.
tmItalic
?
1
:
0
;
lf
->
lfUnderline
=
font
->
otm
.
otmTextMetrics
.
tmUnderlined
?
1
:
0
;
lf
->
lfStrikeOut
=
font
->
otm
.
otmTextMetrics
.
tmStruckOut
?
1
:
0
;
lf
->
lfCharSet
=
font
->
otm
.
otmTextMetrics
.
tmCharSet
;
lf
->
lfOutPrecision
=
OUT_DEFAULT_PRECIS
;
lf
->
lfClipPrecision
=
CLIP_DEFAULT_PRECIS
;
lf
->
lfQuality
=
DEFAULT_QUALITY
;
lf
->
lfPitchAndFamily
=
0
;
lstrcpyW
(
lf
->
lfFaceName
,
font
->
family
->
FamilyName
);
TRACE
(
"=> %s,%ld
\n
"
,
debugstr_w
(
lf
->
lfFaceName
),
lf
->
lfHeight
);
...
...
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