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
5aa90f37
Commit
5aa90f37
authored
Jul 17, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Jul 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Skip some tests if certain fonts are not installed.
parent
bf89330d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
34 deletions
+54
-34
font.c
dlls/gdiplus/tests/font.c
+54
-34
No files found.
dlls/gdiplus/tests/font.c
View file @
5aa90f37
...
...
@@ -53,6 +53,11 @@ static void test_createfont(void)
stat
=
GdipDeleteFont
(
font
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateFontFamilyFromName
(
arial
,
NULL
,
&
fontfamily
);
if
(
stat
==
FontFamilyNotFound
)
{
skip
(
"Arial not installed
\n
"
);
return
;
}
expect
(
Ok
,
stat
);
stat
=
GdipCreateFont
(
fontfamily
,
12
,
FontStyleRegular
,
UnitPoint
,
&
font
);
expect
(
Ok
,
stat
);
...
...
@@ -174,6 +179,11 @@ todo_wine
}
stat
=
GdipCreateFontFamilyFromName
(
arial
,
NULL
,
&
family
);
if
(
stat
==
FontFamilyNotFound
)
{
skip
(
"Arial not installed
\n
"
);
return
;
}
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
family
,
itsName
,
LANG_NEUTRAL
);
...
...
@@ -205,46 +215,56 @@ static void test_fontfamily_properties (void)
GpStatus
stat
;
UINT16
result
=
0
;
GdipCreateFontFamilyFromName
(
arial
,
NULL
,
&
FontFamily
);
stat
=
GdipCreateFontFamilyFromName
(
arial
,
NULL
,
&
FontFamily
);
if
(
stat
==
FontFamilyNotFound
)
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
);
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
);
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
;
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
434
,
"Expected 434, got %d
\n
"
,
result
);
GdipDeleteFontFamily
(
FontFamily
);
GdipCreateFontFamilyFromName
(
TimesNewRoman
,
NULL
,
&
FontFamily
);
result
=
0
;
result
=
0
;
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
;
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
434
,
"Expected 434, got %d
\n
"
,
result
);
GdipDeleteFontFamily
(
FontFamily
);
}
stat
=
GdipCreateFontFamilyFromName
(
TimesNewRoman
,
NULL
,
&
FontFamily
);
if
(
stat
==
FontFamilyNotFound
)
skip
(
"Times New Roman not installed
\n
"
);
else
{
result
=
0
;
todo_wine
{
stat
=
GdipGetLineSpacing
(
FontFamily
,
FontStyleRegular
,
&
result
);
expect
(
Ok
,
stat
);
ok
(
result
==
2355
,
"Expected 2355, got %d
\n
"
,
result
);
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
);
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
;
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
443
,
"Expected 443 got %d
\n
"
,
result
);
GdipDeleteFontFamily
(
FontFamily
);
result
=
0
;
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
;
stat
=
GdipGetCellDescent
(
FontFamily
,
FontStyleRegular
,
&
result
);
ok
(
result
==
443
,
"Expected 443 got %d
\n
"
,
result
);
GdipDeleteFontFamily
(
FontFamily
);
}
}
static
void
test_getgenerics
(
void
)
...
...
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