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
25a18037
Commit
25a18037
authored
Nov 06, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix a broken test.
parent
2d27d829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
font.c
dlls/gdi32/tests/font.c
+14
-7
No files found.
dlls/gdi32/tests/font.c
View file @
25a18037
...
...
@@ -1589,10 +1589,12 @@ static INT CALLBACK arial_enum_proc(const LOGFONT *lf, const TEXTMETRIC *tm, DWO
{
struct
enum_font_data
*
efd
=
(
struct
enum_font_data
*
)
lParam
;
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
);
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
#if 0
trace("enumed font \"%s\", charset %d, weight %d, italic %d\n",
lf->lfFaceName, lf->lfCharSet, lf->lfWeight, lf->lfItalic);
trace("enumed font \"%s\", charset %d,
height %d,
weight %d, italic %d\n",
lf->lfFaceName, lf->lfCharSet, lf->lf
Height, lf->lf
Weight, lf->lfItalic);
#endif
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
...
...
@@ -1606,8 +1608,13 @@ static INT CALLBACK arial_enum_procw(const LOGFONTW *lf, const TEXTMETRICW *tm,
{
struct
enum_font_dataW
*
efd
=
(
struct
enum_font_dataW
*
)
lParam
;
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
ok
(
lf
->
lfHeight
==
tm
->
tmHeight
,
"lfHeight %d != tmHeight %d
\n
"
,
lf
->
lfHeight
,
tm
->
tmHeight
)
;
if
(
type
!=
TRUETYPE_FONTTYPE
)
return
1
;
#if 0
trace("enumed font \"%s\", charset %d, height %d, weight %d, italic %d\n",
lf->lfFaceName, lf->lfCharSet, lf->lfHeight, lf->lfWeight, lf->lfItalic);
#endif
if
(
efd
->
total
<
MAX_ENUM_FONTS
)
efd
->
lf
[
efd
->
total
++
]
=
*
lf
;
else
...
...
@@ -1697,7 +1704,7 @@ static void test_EnumFontFamilies(const char *font_name, INT font_charset)
* Use EnumFontFamiliesW since win98 crashes when the
* second parameter is NULL using EnumFontFamilies
*/
efd
.
total
=
0
;
efd
w
.
total
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
EnumFontFamiliesW
(
hdc
,
NULL
,
arial_enum_procw
,
(
LPARAM
)
&
efdw
);
ok
(
ret
||
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
,
"EnumFontFamiliesW error %u
\n
"
,
GetLastError
());
...
...
@@ -1706,13 +1713,13 @@ static void test_EnumFontFamilies(const char *font_name, INT font_charset)
get_charset_statsW
(
&
efdw
,
&
ansi_charset
,
&
symbol_charset
,
&
russian_charset
);
trace
(
"enumerated ansi %d, symbol %d, russian %d fonts for NULL
\n
"
,
ansi_charset
,
symbol_charset
,
russian_charset
);
ok
(
efd
.
total
==
0
,
"fonts enumerated: NULL
\n
"
);
ok
(
efd
w
.
total
>
0
,
"fonts enumerated: NULL
\n
"
);
ok
(
ansi_charset
>
0
,
"NULL family should enumerate ANSI_CHARSET
\n
"
);
ok
(
symbol_charset
>
0
,
"NULL family should enumerate SYMBOL_CHARSET
\n
"
);
ok
(
russian_charset
>
0
,
"NULL family should enumerate RUSSIAN_CHARSET
\n
"
);
}
efd
.
total
=
0
;
efd
w
.
total
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
EnumFontFamiliesExW
(
hdc
,
NULL
,
arial_enum_procw
,
(
LPARAM
)
&
efdw
,
0
);
ok
(
ret
||
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
,
"EnumFontFamiliesExW error %u
\n
"
,
GetLastError
());
...
...
@@ -1721,7 +1728,7 @@ static void test_EnumFontFamilies(const char *font_name, INT font_charset)
get_charset_statsW
(
&
efdw
,
&
ansi_charset
,
&
symbol_charset
,
&
russian_charset
);
trace
(
"enumerated ansi %d, symbol %d, russian %d fonts for NULL
\n
"
,
ansi_charset
,
symbol_charset
,
russian_charset
);
ok
(
efd
.
total
==
0
,
"fonts enumerated: NULL
\n
"
);
ok
(
efd
w
.
total
>
0
,
"fonts enumerated: NULL
\n
"
);
ok
(
ansi_charset
>
0
,
"NULL family should enumerate ANSI_CHARSET
\n
"
);
ok
(
symbol_charset
>
0
,
"NULL family should enumerate SYMBOL_CHARSET
\n
"
);
ok
(
russian_charset
>
0
,
"NULL family should enumerate RUSSIAN_CHARSET
\n
"
);
...
...
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