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
6fabc902
Commit
6fabc902
authored
Jul 03, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetCellAscent.
parent
b5505f63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
font.c
dlls/gdiplus/font.c
+4
-3
font.c
dlls/gdiplus/tests/font.c
+6
-0
No files found.
dlls/gdiplus/font.c
View file @
6fabc902
...
...
@@ -516,13 +516,14 @@ GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetCellAscent
(
GDIPCONST
GpFontFamily
*
family
,
INT
style
,
UINT16
*
CellAscent
)
GpStatus
WINGDIPAPI
GdipGetCellAscent
(
GDIPCONST
GpFontFamily
*
family
,
INT
style
,
UINT16
*
CellAscent
)
{
if
(
!
(
family
&&
CellAscent
))
return
InvalidParameter
;
FIXME
(
"stub!
\n
"
)
;
*
CellAscent
=
family
->
tmw
.
tmAscent
;
return
NotImplemented
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetCellDescent
(
GDIPCONST
GpFontFamily
*
family
,
INT
style
,
UINT16
*
CellDescent
)
...
...
dlls/gdiplus/tests/font.c
View file @
6fabc902
...
...
@@ -208,11 +208,14 @@ todo_wine
stat
=
GdipGetEmHeight
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
2048
,
"Expected 2048, got %d
\n
"
,
result
);
}
result
=
0
;
stat
=
GdipGetCellAscent
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
1854
,
"Expected 1854, got %d
\n
"
,
result
);
result
=
0
;
todo_wine
{
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
434
,
"Expected 434, got %d
\n
"
,
result
);
}
...
...
@@ -229,11 +232,14 @@ todo_wine
stat
=
GdipGetEmHeight
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
2048
,
"Expected 2048, got %d
\n
"
,
result
);
}
result
=
0
;
stat
=
GdipGetCellAscent
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
1825
,
"Expected 1825, got %d
\n
"
,
result
);
result
=
0
;
todo_wine
{
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
443
,
"Expected 443 got %d
\n
"
,
result
);
}
...
...
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