Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


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/fb/evas_engine.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- evas_engine.c       17 Jan 2004 16:27:58 -0000      1.5
+++ evas_engine.c       23 Jan 2004 02:14:03 -0000      1.6
@@ -57,6 +57,7 @@
 static void evas_engine_fb_image_cache_set(void *data, int bytes);
 static int evas_engine_fb_image_cache_get(void *data);
 static void *evas_engine_fb_font_load(void *data, char *name, int size);
+static void *evas_engine_fb_font_memory_load(void *data, char *name, int size, const 
void *fdata, int fdata_size);
 static void evas_engine_fb_font_free(void *data, void *font);
 static int evas_engine_fb_font_ascent_get(void *data, void *font);
 static int evas_engine_fb_font_descent_get(void *data, void *font);
@@ -142,6 +143,7 @@
      evas_engine_fb_image_cache_get,
      /* font draw functions */
      evas_engine_fb_font_load,
+     evas_engine_fb_font_memory_load,
      evas_engine_fb_font_free,
      evas_engine_fb_font_ascent_get,
      evas_engine_fb_font_descent_get,
@@ -844,6 +846,15 @@
    return evas_common_font_load(name, size);
 }
 
+static void *
+evas_engine_fb_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_fb_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