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
0c06ec1b
Commit
0c06ec1b
authored
Sep 20, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Only run the GetGlyphIndices test if Symbol is installed.
parent
f84c1463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
font.c
dlls/gdi/tests/font.c
+23
-0
No files found.
dlls/gdi/tests/font.c
View file @
0c06ec1b
...
...
@@ -29,6 +29,23 @@
#include "wine/test.h"
static
INT
CALLBACK
is_font_installed_proc
(
const
LOGFONT
*
elf
,
const
TEXTMETRIC
*
ntm
,
DWORD
type
,
LPARAM
lParam
)
{
return
0
;
}
static
BOOL
is_font_installed
(
const
char
*
name
)
{
HDC
hdc
=
GetDC
(
0
);
BOOL
ret
=
FALSE
;
if
(
!
EnumFontFamiliesA
(
hdc
,
name
,
is_font_installed_proc
,
0
))
ret
=
TRUE
;
ReleaseDC
(
0
,
hdc
);
return
ret
;
}
static
void
check_font
(
const
char
*
test
,
const
LOGFONTA
*
lf
,
HFONT
hfont
)
{
LOGFONTA
getobj_lf
;
...
...
@@ -410,6 +427,12 @@ static void test_GetGlyphIndices()
return
;
}
if
(
!
is_font_installed
(
"Symbol"
))
{
trace
(
"Symbol is not installed so skipping this test
\n
"
);
return
;
}
memset
(
&
lf
,
0
,
sizeof
(
lf
));
strcpy
(
lf
.
lfFaceName
,
"Symbol"
);
lf
.
lfHeight
=
20
;
...
...
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