From 1ca867f3c2feb00ccf70c3dc52ce4c0af8d2c6a2 Mon Sep 17 00:00:00 2001 From: sachiel Date: Fri, 27 Aug 2010 18:52:41 +0000 Subject: [PATCH] Put fonts into the .edj file again. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@51684 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_out.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/edje_cc_out.c b/src/bin/edje_cc_out.c index ecd1872..fba18c7 100644 --- a/src/bin/edje_cc_out.c +++ b/src/bin/edje_cc_out.c @@ -282,12 +282,16 @@ data_write_header(Eet_File *ef) static int data_write_fonts(Eet_File *ef, int *font_num, int *input_bytes, int *input_raw_bytes) { - Eina_List *l;; + Eina_Iterator *it; int bytes = 0; int total_bytes = 0; Font *fn; - EINA_LIST_FOREACH(fonts, l, fn) + if (!edje_file->fonts) + return 0; + + it = eina_hash_iterator_data_new(edje_file->fonts); + EINA_ITERATOR_FOREACH(it, fn) { void *fdata = NULL; int fsize = 0; @@ -372,6 +376,7 @@ data_write_fonts(Eet_File *ef, int *font_num, int *input_bytes, int *input_raw_b free(fdata); } } + eina_iterator_free(it); return total_bytes; } -- 2.7.4