Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

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


Modified Files:
        evas_font_load.c 


Log Message:


massive speedup in textblock... maaaaaaaaaaasive.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_font_load.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evas_font_load.c    6 Oct 2004 00:08:12 -0000       1.14
+++ evas_font_load.c    31 Jan 2005 09:32:31 -0000      1.15
@@ -208,9 +208,15 @@
    
    fn = calloc(1, sizeof(RGBA_Font));   
    if (!fn) return NULL;
-   
+
    fn->src = evas_common_font_source_find(name);
-   if (!fn->src) fn->src = evas_common_font_source_load(name);
+   if (!fn->src)
+     {
+/*     printf("REAL LOAD FILE %s %i\n", name, size);*/
+       fn->src = evas_common_font_source_load(name);
+     }
+/*   else*/
+/*     printf("REAL LOAD SIZE %s %i\n", name, size);*/
 
    if (!fn->src)
      {
@@ -386,11 +392,13 @@
 {
    Evas_Object_List *l;
    
+//   printf("SEARCH!\n");
    for (l = fonts; l; l = l->next)
      {
        RGBA_Font *fn;
        
        fn = (RGBA_Font *)l;
+//     printf("%s == %s, %i == %i\n", name, fn->src->name, size, fn->size);
        if ((fn->size == size) && (!strcmp(name, fn->src->name)))
          {
             if (fn->references == 0) evas_common_font_modify_cache_by(fn, -1);




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to