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
c8ebdff8
Commit
c8ebdff8
authored
Feb 03, 2011
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add tests for GetGlyphOutlineA.
parent
edabccd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
2 deletions
+44
-2
font.c
dlls/gdi32/tests/font.c
+44
-2
No files found.
dlls/gdi32/tests/font.c
View file @
c8ebdff8
...
...
@@ -3096,10 +3096,25 @@ todo_wine
static
void
test_GetGlyphOutline
(
void
)
{
HDC
hdc
;
GLYPHMETRICS
gm
;
GLYPHMETRICS
gm
,
gm2
;
LOGFONTA
lf
;
HFONT
hfont
,
old_hfont
;
INT
ret
;
INT
ret
,
ret2
;
static
const
struct
{
UINT
cs
;
UINT
a
;
UINT
w
;
}
c
[]
=
{
{
ANSI_CHARSET
,
0x30
,
0x30
},
{
SHIFTJIS_CHARSET
,
0x82a0
,
0x3042
},
{
HANGEUL_CHARSET
,
0x8141
,
0xac02
},
{
JOHAB_CHARSET
,
0x8446
,
0x3135
},
{
GB2312_CHARSET
,
0x8141
,
0x4e04
},
{
CHINESEBIG5_CHARSET
,
0xa142
,
0x3001
}
};
UINT
i
;
if
(
!
is_truetype_font_installed
(
"Tahoma"
))
{
...
...
@@ -3163,6 +3178,33 @@ static void test_GetGlyphOutline(void)
SelectObject
(
hdc
,
old_hfont
);
DeleteObject
(
hfont
);
for
(
i
=
0
;
i
<
sizeof
c
/
sizeof
c
[
0
];
++
i
)
{
lf
.
lfFaceName
[
0
]
=
'\0'
;
lf
.
lfCharSet
=
c
[
i
].
cs
;
lf
.
lfPitchAndFamily
=
0
;
if
(
EnumFontFamiliesEx
(
hdc
,
&
lf
,
create_font_proc
,
(
LPARAM
)
&
hfont
,
0
))
{
skip
(
"TrueType font for charset %u is not installed
\n
"
,
c
[
i
].
cs
);
continue
;
}
old_hfont
=
SelectObject
(
hdc
,
hfont
);
ret
=
GetGlyphOutlineA
(
hdc
,
0x8041
,
GGO_BITMAP
,
&
gm
,
0
,
NULL
,
&
mat
);
ret2
=
GetGlyphOutlineA
(
hdc
,
0x41
,
GGO_BITMAP
,
&
gm2
,
0
,
NULL
,
&
mat
);
todo_wine
ok
(
ret
==
ret2
&&
memcmp
(
&
gm
,
&
gm2
,
sizeof
gm
)
==
0
,
"%d %d
\n
"
,
ret
,
ret2
);
ret
=
GetGlyphOutlineA
(
hdc
,
c
[
i
].
a
,
GGO_BITMAP
,
&
gm
,
0
,
NULL
,
&
mat
);
ret2
=
GetGlyphOutlineW
(
hdc
,
c
[
i
].
w
,
GGO_BITMAP
,
&
gm2
,
0
,
NULL
,
&
mat
);
ok
(
ret
==
ret2
&&
memcmp
(
&
gm
,
&
gm2
,
sizeof
gm
)
==
0
,
"%d %d
\n
"
,
ret
,
ret2
);
hfont
=
SelectObject
(
hdc
,
old_hfont
);
DeleteObject
(
hfont
);
}
DeleteDC
(
hdc
);
}
...
...
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