From 2c3fd80874f89886d32e05f38e43dff18ce09c2e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 17 Feb 2009 23:46:19 +0000 Subject: Make framebuffer frontend's nsfont_width use the number of characters to calculate the width of a string. svn path=/trunk/netsurf/; revision=6551 --- framebuffer/fb_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framebuffer/fb_font.c b/framebuffer/fb_font.c index aa81484d9..15679ff15 100644 --- a/framebuffer/fb_font.c +++ b/framebuffer/fb_font.c @@ -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; } -- cgit v1.2.3