Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/gl_x11


Modified Files:
        evas_engine.c 


Log Message:


added in loading froms from memory buffers at the engine level, and now an
api to set a font "source" (blank is normal filing system) but the source can
be a device or file etc. in this case it currently supports eet files as the
source and then the font name is used as a key in th eet file as to where to
find the font - edb support would be trivial to add. :) if the font is not
found in the "source" it falls back to the font path etc.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/gl_x11/evas_engine.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas_engine.c       17 Jan 2004 16:27:58 -0000      1.9
+++ evas_engine.c       23 Jan 2004 02:14:06 -0000      1.10
@@ -58,6 +58,7 @@
 static void evas_engine_gl_x11_image_cache_set(void *data, int bytes);
 static int evas_engine_gl_x11_image_cache_get(void *data);
 static void *evas_engine_gl_x11_font_load(void *data, char *name, int size);
+static void *evas_engine_gl_x11_font_memory_load(void *data, char *name, int size, 
const void *fdata, int fdata_size);
 static void evas_engine_gl_x11_font_free(void *data, void *font);
 static int evas_engine_gl_x11_font_ascent_get(void *data, void *font);
 static int evas_engine_gl_x11_font_descent_get(void *data, void *font);
@@ -148,6 +149,7 @@
      evas_engine_gl_x11_image_cache_get,
      /* font draw functions */
      evas_engine_gl_x11_font_load,
+     evas_engine_gl_x11_font_memory_load,
      evas_engine_gl_x11_font_free,
      evas_engine_gl_x11_font_ascent_get,
      evas_engine_gl_x11_font_descent_get,
@@ -851,6 +853,15 @@
    return evas_common_font_load(name, size);
 }
 
+static void *
+evas_engine_gl_x11_font_memory_load(void *data, char *name, int size, const void 
*fdata, int fdata_size)
+{
+   Render_Engine *re;
+
+   re = (Render_Engine *)data;
+   return evas_common_font_memory_load(name, size, fdata, fdata_size);
+}
+
 static void
 evas_engine_gl_x11_font_free(void *data, void *font)
 {




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to