[PATCH] gdi32: Report unsubstituted font face names. (try 3)

Alexandre Julliard julliard at winehq.org
Thu May 8 03:28:35 CDT 2014


Alex Henrie <alexhenrie24 at gmail.com> writes:

> @@ -4741,6 +4741,17 @@ static void test_EnumFonts(void)
>      ret = EnumFontFamiliesA(hdc, NULL, enum_all_fonts_proc, (LPARAM)&lf);
>      ok(ret, "font Arial Italic Bold should not be enumerated\n");
>  
> +    /* MS Shell Dlg and MS Shell Dlg 2 must exist */
> +    ret = EnumFontFamiliesA(hdc, "MS Shell Dlg", enum_fonts_proc, (LPARAM)&lf);
> +    ok(!ret, "font MS Shell Dlg is not enumerated\n");
> +    ret = strcmp(lf.lfFaceName, "MS Shell Dlg");
> +    ok(!ret, "expected MS Shell Dlg got %s\n", lf.lfFaceName);
> +
> +    ret = EnumFontFamiliesA(hdc, "MS Shell Dlg 2", enum_fonts_proc, (LPARAM)&lf);
> +    ok(!ret, "font MS Shell Dlg 2 is not enumerated\n");
> +    ret = strcmp(lf.lfFaceName, "MS Shell Dlg 2");
> +    ok(!ret, "expected MS Shell Dlg 2 got %s\n", lf.lfFaceName);

Please add tests for the full name too.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list