Evas font-engine: fix issue with using the wrong fi.
authorTom Hacohen <tom@stosb.com>
Tue, 26 Apr 2011 10:21:01 +0000 (10:21 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 26 Apr 2011 10:21:01 +0000 (10:21 +0000)
SVN revision: 58930

legacy/evas/src/lib/engines/common/evas_text_utils.c

index 2262da1..edcfb87 100644 (file)
@@ -279,12 +279,12 @@ evas_common_text_props_content_create(void *_fn, const Eina_Unicode *text,
                   /* Update the advance accordingly */
                   adjust_x += (pen_x + (fg->glyph->advance.x >> 16)) -
                      gl_itr->pen_after;
-                  fi = text_props->font_instance;
                }
              pen_x = gl_itr->pen_after;
           }
         gl_itr->pen_after += adjust_x;
 
+        fi = text_props->font_instance;
         gl_itr++;
      }
 #else