Commit af90ab32 authored by Byeongsik Jeon's avatar Byeongsik Jeon Committed by Alexandre Julliard

gdi32: Remove the code that doesn't work as intended around FcFontList().

parent 2fe859b8
...@@ -176,9 +176,6 @@ MAKE_FUNCPTR(FcConfigSubstitute); ...@@ -176,9 +176,6 @@ MAKE_FUNCPTR(FcConfigSubstitute);
MAKE_FUNCPTR(FcFontList); MAKE_FUNCPTR(FcFontList);
MAKE_FUNCPTR(FcFontSetDestroy); MAKE_FUNCPTR(FcFontSetDestroy);
MAKE_FUNCPTR(FcInit); MAKE_FUNCPTR(FcInit);
MAKE_FUNCPTR(FcObjectSetAdd);
MAKE_FUNCPTR(FcObjectSetCreate);
MAKE_FUNCPTR(FcObjectSetDestroy);
MAKE_FUNCPTR(FcPatternCreate); MAKE_FUNCPTR(FcPatternCreate);
MAKE_FUNCPTR(FcPatternDestroy); MAKE_FUNCPTR(FcPatternDestroy);
MAKE_FUNCPTR(FcPatternGetBool); MAKE_FUNCPTR(FcPatternGetBool);
...@@ -2796,9 +2793,6 @@ static void init_fontconfig(void) ...@@ -2796,9 +2793,6 @@ static void init_fontconfig(void)
LOAD_FUNCPTR(FcFontList); LOAD_FUNCPTR(FcFontList);
LOAD_FUNCPTR(FcFontSetDestroy); LOAD_FUNCPTR(FcFontSetDestroy);
LOAD_FUNCPTR(FcInit); LOAD_FUNCPTR(FcInit);
LOAD_FUNCPTR(FcObjectSetAdd);
LOAD_FUNCPTR(FcObjectSetCreate);
LOAD_FUNCPTR(FcObjectSetDestroy);
LOAD_FUNCPTR(FcPatternCreate); LOAD_FUNCPTR(FcPatternCreate);
LOAD_FUNCPTR(FcPatternDestroy); LOAD_FUNCPTR(FcPatternDestroy);
LOAD_FUNCPTR(FcPatternGetBool); LOAD_FUNCPTR(FcPatternGetBool);
...@@ -2829,7 +2823,6 @@ static void init_fontconfig(void) ...@@ -2829,7 +2823,6 @@ static void init_fontconfig(void)
static void load_fontconfig_fonts(void) static void load_fontconfig_fonts(void)
{ {
FcPattern *pat; FcPattern *pat;
FcObjectSet *os;
FcFontSet *fontset; FcFontSet *fontset;
int i, len; int i, len;
char *file; char *file;
...@@ -2838,13 +2831,15 @@ static void load_fontconfig_fonts(void) ...@@ -2838,13 +2831,15 @@ static void load_fontconfig_fonts(void)
if (!fontconfig_enabled) return; if (!fontconfig_enabled) return;
pat = pFcPatternCreate(); pat = pFcPatternCreate();
os = pFcObjectSetCreate(); if (!pat) return;
pFcObjectSetAdd(os, FC_FILE);
pFcObjectSetAdd(os, FC_SCALABLE); fontset = pFcFontList(NULL, pat, NULL);
pFcObjectSetAdd(os, FC_ANTIALIAS); if (!fontset)
pFcObjectSetAdd(os, FC_RGBA); {
fontset = pFcFontList(NULL, pat, os); pFcPatternDestroy(pat);
if(!fontset) return; return;
}
for(i = 0; i < fontset->nfont; i++) { for(i = 0; i < fontset->nfont; i++) {
FcBool scalable; FcBool scalable;
DWORD aa_flags; DWORD aa_flags;
...@@ -2875,7 +2870,6 @@ static void load_fontconfig_fonts(void) ...@@ -2875,7 +2870,6 @@ static void load_fontconfig_fonts(void)
ADDFONT_EXTERNAL_FONT | ADDFONT_ADD_TO_CACHE | ADDFONT_AA_FLAGS(aa_flags) ); ADDFONT_EXTERNAL_FONT | ADDFONT_ADD_TO_CACHE | ADDFONT_AA_FLAGS(aa_flags) );
} }
pFcFontSetDestroy(fontset); pFcFontSetDestroy(fontset);
pFcObjectSetDestroy(os);
pFcPatternDestroy(pat); pFcPatternDestroy(pat);
} }
......
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