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
cfc50b28
Commit
cfc50b28
authored
Jul 23, 2023
by
David Kahurani
Committed by
Alexandre Julliard
Jul 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/font: Fix GdipGetLogFontW/A with gdi_transform.
Signed-off-by:
David Kahurani
<
k.kahurani@gmail.com
>
parent
062ef22c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
font.c
dlls/gdiplus/font.c
+2
-0
font.c
dlls/gdiplus/tests/font.c
+14
-0
No files found.
dlls/gdiplus/font.c
View file @
cfc50b28
...
...
@@ -485,6 +485,8 @@ GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics, LOGFONTW
pt
[
1
].
Y
=
0
.
0
;
pt
[
2
].
X
=
0
.
0
;
pt
[
2
].
Y
=
1
.
0
;
GdipMultiplyMatrix
(
&
matrix
,
&
graphics
->
gdi_transform
,
MatrixOrderAppend
);
GdipTransformMatrixPoints
(
&
matrix
,
pt
,
3
);
angle
=
-
gdiplus_atan2
((
pt
[
1
].
Y
-
pt
[
0
].
Y
),
(
pt
[
1
].
X
-
pt
[
0
].
X
));
rel_height
=
sqrt
((
pt
[
2
].
Y
-
pt
[
0
].
Y
)
*
(
pt
[
2
].
Y
-
pt
[
0
].
Y
)
+
...
...
dlls/gdiplus/tests/font.c
View file @
cfc50b28
...
...
@@ -1239,6 +1239,20 @@ static void test_font_transform(void)
todo_wine
expectf_
(
1532
.
984985
,
bounds
.
Height
,
0
.
05
);
GdipDeleteGraphics
(
graphics
);
SetMapMode
(
hdc
,
MM_ISOTROPIC
);
SetWindowExtEx
(
hdc
,
200
,
200
,
NULL
);
SetViewportExtEx
(
hdc
,
100
,
100
,
NULL
);
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
status
=
GdipGetLogFontA
(
font
,
graphics
,
&
lf
);
expect
(
Ok
,
status
);
expect
(
-
50
,
lf
.
lfHeight
);
expect
(
0
,
lf
.
lfWidth
);
expect
(
0
,
lf
.
lfEscapement
);
expect
(
0
,
lf
.
lfOrientation
);
GdipDeleteMatrix
(
matrix
);
GdipDeleteFont
(
font
);
GdipDeleteGraphics
(
graphics
);
...
...
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