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
a9aafec2
Commit
a9aafec2
authored
Nov 15, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Nov 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Skip GetGlyphIndices tests for non-ANSI codepages.
parent
37cf8dc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
font.c
dlls/gdi32/tests/font.c
+21
-9
No files found.
dlls/gdi32/tests/font.c
View file @
a9aafec2
...
...
@@ -1017,16 +1017,28 @@ static void test_GetGlyphIndices(void)
hdc
=
GetDC
(
0
);
memset
(
&
lf
,
0
,
sizeof
(
lf
));
strcpy
(
lf
.
lfFaceName
,
"System"
);
lf
.
lfHeight
=
16
;
lf
.
lfCharSet
=
ANSI_CHARSET
;
hfont
=
CreateFontIndirectA
(
&
lf
);
ok
(
GetTextMetrics
(
hdc
,
&
textm
),
"GetTextMetric failed
\n
"
);
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndicesW count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
((
glyphs
[
4
]
==
0x001f
||
glyphs
[
4
]
==
0xffff
/* Vista */
),
"GetGlyphIndicesW should have returned a nonexistent char not %04x
\n
"
,
glyphs
[
4
]);
flags
=
0
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndicesW count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
glyphs
[
4
]
==
textm
.
tmDefaultChar
,
"GetGlyphIndicesW should have returned a %04x not %04x
\n
"
,
textm
.
tmDefaultChar
,
glyphs
[
4
]);
if
(
textm
.
tmCharSet
==
ANSI_CHARSET
)
{
flags
|=
GGI_MARK_NONEXISTING_GLYPHS
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndicesW count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
((
glyphs
[
4
]
==
0x001f
||
glyphs
[
4
]
==
0xffff
/* Vista */
),
"GetGlyphIndicesW should have returned a nonexistent char not %04x
\n
"
,
glyphs
[
4
]);
flags
=
0
;
charcount
=
pGetGlyphIndicesW
(
hdc
,
testtext
,
(
sizeof
(
testtext
)
/
2
)
-
1
,
glyphs
,
flags
);
ok
(
charcount
==
5
,
"GetGlyphIndicesW count of glyphs should = 5 not %d
\n
"
,
charcount
);
ok
(
glyphs
[
4
]
==
textm
.
tmDefaultChar
,
"GetGlyphIndicesW should have returned a %04x not %04x
\n
"
,
textm
.
tmDefaultChar
,
glyphs
[
4
]);
}
else
/* FIXME: Write tests for non-ANSI charsets. */
skip
(
"GetGlyphIndices System font tests only for ANSI_CHARSET
\n
"
);
if
(
!
is_font_installed
(
"Tahoma"
))
{
...
...
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