Evas font: Fixed evas_font_path_* functions to apply to fontconfig.

Until now those were only used for custom fonts, and not for fontconfig
searches. With this commit, fontconfig will also start looking in those
dirs.
This commit is contained in:
Tom Hacohen 2013-09-25 15:05:01 +01:00
parent baf018d659
commit f03148f9e3
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-09-25 Tom Hacohen
* Evas font: Make the evas_font_path_* functions apply to fontconfig searches.
2013-09-25 Tom Hacohen
* Evas font: Use our own fontconfig configuration so we don't get

1
NEWS
View File

@ -68,6 +68,7 @@ Additions:
- textblock: Make the ellipsis format the same as the surrounding.
- Add interceptor for focus_set.
- Evas font: Use our own fontconfig configuration so we don't get affected by changes made to the default fontconfig configuration.
- Evas font: Make the evas_font_path_* functions apply to fontconfig searches.
* Ecore_X:
- Add window profile support.
ECORE_X_ATOM_E_WINDOW_PROFILE_SUPPORTED

View File

@ -1219,6 +1219,9 @@ _canvas_font_path_clear(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list EINA_UNUS
eina_stringshare_del(evas->font_path->data);
evas->font_path = eina_list_remove(evas->font_path, evas->font_path->data);
}
if (fc_config)
FcConfigAppFontClear(fc_config);
}
EAPI void
@ -1237,6 +1240,10 @@ _canvas_font_path_append(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
Evas_Public_Data *e = _pd;
if (!path) return;
e->font_path = eina_list_append(e->font_path, eina_stringshare_add(path));
evas_font_init();
if (fc_config)
FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
}
EAPI void
@ -1255,6 +1262,10 @@ _canvas_font_path_prepend(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
Evas_Public_Data *e = _pd;
if (!path) return;
e->font_path = eina_list_prepend(e->font_path, eina_stringshare_add(path));
evas_font_init();
if (fc_config)
FcConfigAppFontAddDir(fc_config, (const FcChar8 *) path);
}
EAPI const Eina_List *