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
c04b7c5b
Commit
c04b7c5b
authored
Nov 24, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetLineSpacing.
parent
67a9170a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
font.c
dlls/gdiplus/font.c
+9
-5
font.c
dlls/gdiplus/tests/font.c
+0
-6
No files found.
dlls/gdiplus/font.c
View file @
c04b7c5b
...
...
@@ -667,8 +667,7 @@ GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, U
{
if
(
!
(
family
&&
EmHeight
))
return
InvalidParameter
;
TRACE
(
"%p (%s), %d, %p, stub!
\n
"
,
family
,
debugstr_w
(
family
->
FamilyName
),
style
,
EmHeight
);
TRACE
(
"%p (%s), %d, %p
\n
"
,
family
,
debugstr_w
(
family
->
FamilyName
),
style
,
EmHeight
);
*
EmHeight
=
family
->
tmw
.
ntmSizeEM
;
...
...
@@ -693,11 +692,16 @@ GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, U
GpStatus
WINGDIPAPI
GdipGetLineSpacing
(
GDIPCONST
GpFontFamily
*
family
,
INT
style
,
UINT16
*
LineSpacing
)
{
if
(
!
(
family
&&
LineSpacing
))
return
InvalidParameter
;
TRACE
(
"%p, %d, %p
\n
"
,
family
,
style
,
LineSpacing
)
;
FIXME
(
"stub!
\n
"
);
if
(
!
(
family
&&
LineSpacing
))
return
InvalidParameter
;
return
NotImplemented
;
if
(
style
)
FIXME
(
"ignoring style
\n
"
);
*
LineSpacing
=
family
->
tmw
.
tmAscent
+
family
->
tmw
.
tmDescent
+
family
->
tmw
.
tmExternalLeading
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipIsStyleAvailable
(
GDIPCONST
GpFontFamily
*
family
,
...
...
dlls/gdiplus/tests/font.c
View file @
c04b7c5b
...
...
@@ -246,12 +246,9 @@ static void test_fontfamily_properties (void)
skip
(
"Arial not installed
\n
"
);
else
{
todo_wine
{
stat
=
GdipGetLineSpacing
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
2355
,
"Expected 2355, got %d
\n
"
,
result
);
}
result
=
0
;
stat
=
GdipGetEmHeight
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
...
...
@@ -272,12 +269,9 @@ todo_wine
else
{
result
=
0
;
todo_wine
{
stat
=
GdipGetLineSpacing
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
2355
,
"Expected 2355, got %d
\n
"
,
result
);
}
result
=
0
;
stat
=
GdipGetEmHeight
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
...
...
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