Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_font_dir.c evas_main.c evas_object_text.c 


Log Message:


make hinting an engine api thnig - engine apis need to be mroe easily updated
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_font_dir.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- evas_font_dir.c     30 Nov 2005 08:45:20 -0000      1.13
+++ evas_font_dir.c     28 Feb 2006 04:07:47 -0000      1.14
@@ -312,6 +312,9 @@
        fd->ref = 1;
        fonts_cache = evas_list_prepend(fonts_cache, fd);
      }
+   if (font)
+     evas->engine.func->font_hinting_set(evas->engine.data.output, font,
+                                        evas->hinting);
    return font;
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_main.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- evas_main.c 14 Jan 2006 15:39:57 -0000      1.28
+++ evas_main.c 28 Feb 2006 04:07:47 -0000      1.29
@@ -61,6 +61,7 @@
    e->output.render_method = RENDER_METHOD_INVALID;
    e->viewport.w = 1;
    e->viewport.h = 1;
+   e->hinting = EVAS_FONT_HINTING_BYTECODE;
    return e;
 }
 
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_text.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- evas_object_text.c  16 Feb 2006 02:06:55 -0000      1.52
+++ evas_object_text.c  28 Feb 2006 04:07:47 -0000      1.53
@@ -969,6 +969,38 @@
    return e->font_path;
 }
 
+static Evas_Font_Hinting_Flags _evas_hinting = EVAS_FONT_HINTING_BYTECODE;
+
+EAPI void
+evas_font_hinting_set(Evas *e, Evas_Font_Hinting_Flags hinting)
+{
+   MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+   return;
+   MAGIC_CHECK_END();
+   e->hinting = hinting;
+}
+
+EAPI Evas_Font_Hinting_Flags
+evas_font_hinting_get(Evas *e)
+{
+   MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+   return EVAS_FONT_HINTING_BYTECODE;
+   MAGIC_CHECK_END();
+   return e->hinting;
+}
+
+EAPI Evas_Bool
+evas_font_hinting_can_hint(Evas *e, Evas_Font_Hinting_Flags hinting)
+{
+   MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+   return 0;
+   MAGIC_CHECK_END();
+   if (e->engine.func->font_hinting_can_hint)
+     return e->engine.func->font_hinting_can_hint(e->engine.data.output,
+                                                 hinting);
+   return 0;
+}
+
 
 
 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to