From: Tom Hacohen Date: Thu, 30 Jan 2014 14:20:45 +0000 (+0000) Subject: Evas font: Renamed evas_load_fontconfig and added support for a base set. X-Git-Tag: v1.9.0-alpha1~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c44890491afb1db7ec9d142d7220ebfa768d42f;p=platform%2Fupstream%2Fefl.git Evas font: Renamed evas_load_fontconfig and added support for a base set. Renamed it so it'll be more obvious that it's internal. Added the parameter as the first step towards supporting edje font fallback using fontconfig. --- diff --git a/src/lib/evas/canvas/evas_font_dir.c b/src/lib/evas/canvas/evas_font_dir.c index f8298de..f29e31f 100644 --- a/src/lib/evas/canvas/evas_font_dir.c +++ b/src/lib/evas/canvas/evas_font_dir.c @@ -223,11 +223,10 @@ evas_font_free(Evas *eo_evas, void *font) #ifdef HAVE_FONTCONFIG static Evas_Font_Set * -evas_load_fontconfig(Evas *eo_evas, FcFontSet *set, int size, +_evas_load_fontconfig(Evas_Font_Set *font, Evas *eo_evas, FcFontSet *set, int size, Font_Rend_Flags wanted_rend) { Evas_Public_Data *evas = eo_data_scope_get(eo_evas, EVAS_CLASS); - Evas_Font_Set *font = NULL; int i; /* Do loading for all in family */ @@ -568,7 +567,7 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source, #ifdef HAVE_FONTCONFIG if (found_fd) { - font = evas_load_fontconfig(evas->evas, found_fd->set, size, wanted_rend); + font = _evas_load_fontconfig(font, evas->evas, found_fd->set, size, wanted_rend); goto on_find; } #endif @@ -601,7 +600,7 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source, #ifdef HAVE_FONTCONFIG if (found_fd) { - font = evas_load_fontconfig(evas->evas, found_fd->set, size, wanted_rend); + font = _evas_load_fontconfig(font, evas->evas, found_fd->set, size, wanted_rend); goto on_find; } #endif @@ -781,7 +780,7 @@ evas_font_load(Evas *eo_evas, Evas_Font_Description *fdesc, const char *source, } else { - font = evas_load_fontconfig(evas->evas, set, size, wanted_rend); + font = _evas_load_fontconfig(font, evas->evas, set, size, wanted_rend); } } #endif