Evas font-engine: fixed kerning in the default walker.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:38:33 +0000 (10:38 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 30 Jan 2011 10:38:33 +0000 (10:38 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@56473 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_default_walk.x

index 1d1402b..78b85cd 100644 (file)
          if (intl_props && (intl_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL) && \
                visible && !is_visual) \
            { \
-              if (!evas_common_font_query_kerning(fi, index, prev_index, &kern)) \
-                kern = 0; \
+              if (evas_common_font_query_kerning(fi, index, prev_index, &kern)) \
+                pen_x += kern; \
            } \
          else \
            { \
-              if (!evas_common_font_query_kerning(fi, prev_index, index, &kern)) \
-                kern = 0; \
+              if (evas_common_font_query_kerning(fi, prev_index, index, &kern)) \
+                pen_x += kern; \
            } \
       } \
    while (0)
@@ -35,8 +35,8 @@
    do \
       { \
          (void) is_visual; \
-         if (!evas_common_font_query_kerning(fi, prev_index, index, &kern)) \
-           kern = 0; \
+         if (evas_common_font_query_kerning(fi, prev_index, index, &kern)) \
+           pen_x += kern; \
       } \
    while (0)
 #endif
              if (_gl == 0) break;
 
 /*FIXME: doc */
-#define EVAS_FONT_WALK_DEFAULT_X_OFF (kern)
+#define EVAS_FONT_WALK_DEFAULT_X_OFF (0)
 #define EVAS_FONT_WALK_DEFAULT_Y_OFF (0)
 #define EVAS_FONT_WALK_DEFAULT_X_BEAR (fg->glyph_out->left)
 #define EVAS_FONT_WALK_DEFAULT_Y_BEAR (fg->glyph_out->top)