FcInitReinitialize() function will destroy previous default(or current) _fcConfig.
If fontconfig is used outside of Evas, it can cause some crash issues.
@tizen_fix
Change-Id: Ied340277155832c802e5ce1f8f66a6c8be5ae115
(cherry picked from commit
0bc545d5555d30cfcb024ac52ad2e1f29457d3b7)
Eina_List *l;
char *path;
+ /* TIZEN_ONLY(20170118): don't reinit fontconfig to destroy _fcConfig
if (fc_config) FcConfigDestroy(fc_config);
FcInitReinitialize();
EINA_LIST_FOREACH(global_font_path, l, path)
FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
+ */
+ if (fc_config)
+ {
+ FcConfigDestroy(fc_config);
+ fc_config = FcInitLoadConfigAndFonts();
+
+ EINA_LIST_FOREACH(global_font_path, l, path)
+ FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
+ }
+ /* END */
#endif
}