Find chr_x the same way as in the other functions. The main loop is very

similar in many functions and should be refactored.


SVN revision: 30389
This commit is contained in:
Sebastian Dransfeld 2007-06-18 16:47:20 +00:00
parent 166cdf9873
commit f2b945b53d
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ evas_common_font_query_size(RGBA_Font *fn, const char *text, int *w, int *h)
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;