Fix imlib_font_query_size width calculation when there are undefined

codepoints (ticket 230).


SVN revision: 39306
This commit is contained in:
Kim Woelders 2009-03-01 12:14:27 +00:00
parent a7b230a6f8
commit 9686658a3c
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ imlib_font_query_size(ImlibFont * fn, const char *text, int *w, int *h)
chr_y = (pen_y >> 8) + fg->glyph_out->top;
chr_w = fg->glyph_out->bitmap.width;
if (!prev_index)
if (pen_x == 0)
start_x = chr_x;
if ((chr_x + chr_w) > end_x)
end_x = chr_x + chr_w;