Enlightenment CVS committal Author : englebass Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common Modified Files: evas_font_query.c Log Message: Find chr_x the same way as in the other functions. The main loop is very similar in many functions and should be refactored. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_font_query.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- evas_font_query.c 8 Oct 2006 12:43:31 -0000 1.21 +++ evas_font_query.c 18 Jun 2007 16:47:20 -0000 1.22 @@ -52,7 +52,8 @@ fg = evas_common_font_int_cache_glyph_get(fi, index); if (!fg) continue; - chr_x = (pen_x + (fg->glyph_out->left)); + if (kern < 0) kern = 0; + chr_x = ((pen_x - kern) + (fg->glyph_out->left)); chr_y = (pen_y + (fg->glyph_out->top)); // chr_w = fg->glyph_out->bitmap.width; chr_w = fg->glyph_out->bitmap.width + kern; ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs