cedric pushed a commit to branch master.

commit 9929ee9aecb938442016e38e81951ae54ab3ff27
Author: Jean-Philippe Andre <[email protected]>
Date:   Wed Jun 19 15:48:30 2013 +0900

    cserve2: add more error debug for font loading
---
 src/bin/evas/evas_cserve2_fonts.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/evas/evas_cserve2_fonts.c 
b/src/bin/evas/evas_cserve2_fonts.c
index 3a12305..3af9693 100644
--- a/src/bin/evas/evas_cserve2_fonts.c
+++ b/src/bin/evas/evas_cserve2_fonts.c
@@ -93,6 +93,7 @@ _font_slave_source_load(const char *file, const char *name)
         error = FT_New_Face(cserve2_ft_lib, file, 0, &(fsi->face));
         if (error)
           {
+             ERR("could not open font file: %s", file);
              free(fsi);
              return NULL;
           }
@@ -106,6 +107,7 @@ _font_slave_source_load(const char *file, const char *name)
         ef = eet_open(file, EET_FILE_MODE_READ);
         if (!ef)
           {
+             ERR("failed to read eet: %s", file);
              free(fsi);
              return NULL;
           }
@@ -113,6 +115,7 @@ _font_slave_source_load(const char *file, const char *name)
         eet_close(ef);
         if (!fdata)
           {
+             ERR("failed to read font from eet: %s:%s", file, name);
              free(fsi);
              return NULL;
           }
@@ -123,6 +126,7 @@ _font_slave_source_load(const char *file, const char *name)
                                    0, &(fsi->face));
         if (error)
           {
+             ERR("failed to load font: %s:%s", file, name);
              free(fsi->data);
              free(fsi);
              return NULL;
@@ -132,6 +136,7 @@ _font_slave_source_load(const char *file, const char *name)
    error = FT_Select_Charmap(fsi->face, ft_encoding_unicode);
    if (error)
      {
+        ERR("could not select unicode charmap for font: %s:%s", file, name);
         FT_Done_Face(fsi->face);
         free(fsi->data);
         free(fsi);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to