Commit 0c06ec1b authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Only run the GetGlyphIndices test if Symbol is installed.

parent f84c1463
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment