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
e4cc0bc4
Commit
e4cc0bc4
authored
Aug 04, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Skip the generic font tests if we don't have the required fonts.
parent
2f366935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
font.c
dlls/gdiplus/tests/font.c
+22
-0
No files found.
dlls/gdiplus/tests/font.c
View file @
e4cc0bc4
...
@@ -108,6 +108,11 @@ todo_wine {
...
@@ -108,6 +108,11 @@ todo_wine {
memcpy
(
&
lfw
.
lfFaceName
,
arial
,
6
*
sizeof
(
WCHAR
));
memcpy
(
&
lfw
.
lfFaceName
,
arial
,
6
*
sizeof
(
WCHAR
));
stat
=
GdipCreateFontFromLogfontW
(
hdc
,
&
lfw
,
&
font
);
stat
=
GdipCreateFontFromLogfontW
(
hdc
,
&
lfw
,
&
font
);
if
(
stat
==
FileNotFound
)
{
skip
(
"Arial not installed.
\n
"
);
return
;
}
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
stat
=
GdipGetLogFontW
(
font
,
graphics
,
&
lfw2
);
stat
=
GdipGetLogFontW
(
font
,
graphics
,
&
lfw2
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
...
@@ -282,6 +287,11 @@ static void test_getgenerics (void)
...
@@ -282,6 +287,11 @@ static void test_getgenerics (void)
ZeroMemory
(
familyName
,
sizeof
(
familyName
)
/
sizeof
(
WCHAR
));
ZeroMemory
(
familyName
,
sizeof
(
familyName
)
/
sizeof
(
WCHAR
));
stat
=
GdipGetGenericFontFamilySansSerif
(
&
family
);
stat
=
GdipGetGenericFontFamilySansSerif
(
&
family
);
if
(
stat
==
FontFamilyNotFound
)
{
skip
(
"Microsoft Sans Serif not installed
\n
"
);
goto
serif
;
}
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
...
@@ -292,7 +302,13 @@ static void test_getgenerics (void)
...
@@ -292,7 +302,13 @@ static void test_getgenerics (void)
stat
=
GdipDeleteFontFamily
(
family
);
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
serif:
stat
=
GdipGetGenericFontFamilySerif
(
&
family
);
stat
=
GdipGetGenericFontFamilySerif
(
&
family
);
if
(
stat
==
FontFamilyNotFound
)
{
skip
(
"Times New Roman not installed
\n
"
);
goto
monospace
;
}
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
...
@@ -301,7 +317,13 @@ static void test_getgenerics (void)
...
@@ -301,7 +317,13 @@ static void test_getgenerics (void)
stat
=
GdipDeleteFontFamily
(
family
);
stat
=
GdipDeleteFontFamily
(
family
);
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
monospace:
stat
=
GdipGetGenericFontFamilyMonospace
(
&
family
);
stat
=
GdipGetGenericFontFamilyMonospace
(
&
family
);
if
(
stat
==
FontFamilyNotFound
)
{
skip
(
"Courier New not installed
\n
"
);
return
;
}
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
stat
=
GdipGetFamilyName
(
family
,
familyName
,
LANG_NEUTRAL
);
expect
(
Ok
,
stat
);
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