From 35c3d82c2e3f852905652a3fcbdeda182270de9a Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 31 Jul 2012 10:51:11 +0000 Subject: [PATCH] Evas font: Fixed compilation without fontconfig. Thanks a lot to JaMa for reporting this. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@74640 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_font_dir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/canvas/evas_font_dir.c b/src/lib/canvas/evas_font_dir.c index 551d8d9..93f307b 100644 --- a/src/lib/canvas/evas_font_dir.c +++ b/src/lib/canvas/evas_font_dir.c @@ -533,11 +533,13 @@ evas_font_load(Evas *evas, Evas_Font_Description *fdesc, const char *source, Eva } } +#ifdef HAVE_FONTCONFIG if (found_fd) { font = evas_load_fontconfig(evas, found_fd->set, size, wanted_rend); goto on_find; } +#endif EINA_LIST_FOREACH(fonts_zero, l, fd) { @@ -564,11 +566,13 @@ evas_font_load(Evas *evas, Evas_Font_Description *fdesc, const char *source, Eva } } +#ifdef HAVE_FONTCONFIG if (found_fd) { font = evas_load_fontconfig(evas, found_fd->set, size, wanted_rend); goto on_find; } +#endif fonts = evas_font_set_get(fdesc->name); EINA_LIST_FOREACH(fonts, l, nm) /* Load each font in append */ -- 2.7.4