Make framebuffer frontend's nsfont_width use the number of characters to calculate the width of a string.

svn path=/trunk/netsurf/; revision=6551
This commit is contained in:
John Mark Bell 2009-02-17 23:46:19 +00:00
parent 41d2eca3b1
commit 2c3fd80874

View File

@ -56,7 +56,7 @@ static bool nsfont_width(const struct css_style *style,
int *width)
{
const struct fb_font_desc* fb_font = fb_get_font(style);
*width = fb_font->width * length;
*width = fb_font->width * utf8_bounded_length(string, length);
return true;
}