gdi32: Support other settings for obtaining the default_aa_flags value.

Signed-off-by: Byeongsik Jeon <bsjeon@hanmail.net>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Byeongsik Jeon 2018-10-24 01:07:11 +09:00 committed by Alexandre Julliard
parent 4e90bddcdd
commit 2fe859b8ef
1 changed files with 9 additions and 0 deletions

View File

@ -2812,6 +2812,15 @@ static void init_fontconfig(void)
pFcConfigSubstitute( NULL, pattern, FcMatchFont );
default_aa_flags = parse_aa_pattern( pattern );
pFcPatternDestroy( pattern );
if (!default_aa_flags)
{
FcPattern *pattern = pFcPatternCreate();
pFcConfigSubstitute( NULL, pattern, FcMatchPattern );
default_aa_flags = parse_aa_pattern( pattern );
pFcPatternDestroy( pattern );
}
TRACE( "enabled, default flags = %x\n", default_aa_flags );
fontconfig_enabled = TRUE;
}