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
62cae5ab
Commit
62cae5ab
authored
Aug 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Save elements of font's style.
parent
510ecb65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
font.c
dlls/gdiplus/font.c
+3
-0
font.c
dlls/gdiplus/tests/font.c
+3
-5
No files found.
dlls/gdiplus/font.c
View file @
62cae5ab
...
@@ -43,6 +43,9 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
...
@@ -43,6 +43,9 @@ GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
memcpy
(
&
(
*
font
)
->
lfw
.
lfFaceName
,
logfont
->
lfFaceName
,
LF_FACESIZE
*
memcpy
(
&
(
*
font
)
->
lfw
.
lfFaceName
,
logfont
->
lfFaceName
,
LF_FACESIZE
*
sizeof
(
WCHAR
));
sizeof
(
WCHAR
));
(
*
font
)
->
lfw
.
lfHeight
=
logfont
->
lfHeight
;
(
*
font
)
->
lfw
.
lfHeight
=
logfont
->
lfHeight
;
(
*
font
)
->
lfw
.
lfItalic
=
logfont
->
lfItalic
;
(
*
font
)
->
lfw
.
lfUnderline
=
logfont
->
lfUnderline
;
(
*
font
)
->
lfw
.
lfStrikeOut
=
logfont
->
lfStrikeOut
;
hfont
=
CreateFontIndirectW
(
&
(
*
font
)
->
lfw
);
hfont
=
CreateFontIndirectW
(
&
(
*
font
)
->
lfw
);
oldfont
=
SelectObject
(
hdc
,
hfont
);
oldfont
=
SelectObject
(
hdc
,
hfont
);
...
...
dlls/gdiplus/tests/font.c
View file @
62cae5ab
...
@@ -79,11 +79,9 @@ static void test_logfont(void)
...
@@ -79,11 +79,9 @@ static void test_logfont(void)
expect
(
0
,
lfw2
.
lfEscapement
);
expect
(
0
,
lfw2
.
lfEscapement
);
expect
(
0
,
lfw2
.
lfOrientation
);
expect
(
0
,
lfw2
.
lfOrientation
);
ok
((
lfw2
.
lfWeight
>=
100
)
&&
(
lfw2
.
lfWeight
<=
900
),
"Expected weight to be set
\n
"
);
ok
((
lfw2
.
lfWeight
>=
100
)
&&
(
lfw2
.
lfWeight
<=
900
),
"Expected weight to be set
\n
"
);
todo_wine
{
expect
(
TRUE
,
lfw2
.
lfItalic
);
expect
(
TRUE
,
lfw2
.
lfItalic
);
expect
(
TRUE
,
lfw2
.
lfUnderline
);
expect
(
TRUE
,
lfw2
.
lfUnderline
);
expect
(
TRUE
,
lfw2
.
lfStrikeOut
);
expect
(
TRUE
,
lfw2
.
lfStrikeOut
);
}
expect
(
0
,
lfw2
.
lfCharSet
);
expect
(
0
,
lfw2
.
lfCharSet
);
expect
(
0
,
lfw2
.
lfOutPrecision
);
expect
(
0
,
lfw2
.
lfOutPrecision
);
expect
(
0
,
lfw2
.
lfClipPrecision
);
expect
(
0
,
lfw2
.
lfClipPrecision
);
...
...
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