Try to get current instance of FcConfig as far as possible
This commit is contained in:
parent
0b59a65a71
commit
aa85a2b3b6
|
@ -653,6 +653,8 @@ FcFontRenderPrepare (FcConfig *config,
|
|||
if (!l)
|
||||
goto bail0;
|
||||
dir = FcStrDirname (FcValueString (&l->value));
|
||||
if (!config)
|
||||
config = FcConfigGetCurrent ();
|
||||
if (config && FcHashTableFind (config->alias_table, dir, (void **) &alias))
|
||||
{
|
||||
FcChar8 *base = FcStrBasename (FcValueString (&l->value));
|
||||
|
|
Loading…
Reference in New Issue