mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
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:
parent
41d2eca3b1
commit
2c3fd80874
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user