forked from old/legacy-imlib2
Fix imlib_font_query_size width calculation when there are undefined
codepoints (ticket 230). SVN revision: 39306
This commit is contained in:
parent
a7b230a6f8
commit
9686658a3c
|
@ -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_y = (pen_y >> 8) + fg->glyph_out->top;
|
||||||
chr_w = fg->glyph_out->bitmap.width;
|
chr_w = fg->glyph_out->bitmap.width;
|
||||||
|
|
||||||
if (!prev_index)
|
if (pen_x == 0)
|
||||||
start_x = chr_x;
|
start_x = chr_x;
|
||||||
if ((chr_x + chr_w) > end_x)
|
if ((chr_x + chr_w) > end_x)
|
||||||
end_x = chr_x + chr_w;
|
end_x = chr_x + chr_w;
|
||||||
|
|
Loading…
Reference in New Issue