summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 23:46:19 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 23:46:19 +0000
commit2c3fd80874f89886d32e05f38e43dff18ce09c2e (patch)
treef2ab5af8a225a5a4b1f5a411ce352f342dfe8e50 /framebuffer
parent41d2eca3b12de0c23f18d8f54918d4e71c1a8b56 (diff)
downloadnetsurf-2c3fd80874f89886d32e05f38e43dff18ce09c2e.tar.gz
netsurf-2c3fd80874f89886d32e05f38e43dff18ce09c2e.tar.bz2
Make framebuffer frontend's nsfont_width use the number of characters to calculate the width of a string.
svn path=/trunk/netsurf/; revision=6551
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/fb_font.c2
1 files changed, 1 insertions, 1 deletions
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;
}