diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-17 23:46:19 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-17 23:46:19 +0000 |
commit | 2c3fd80874f89886d32e05f38e43dff18ce09c2e (patch) | |
tree | f2ab5af8a225a5a4b1f5a411ce352f342dfe8e50 /framebuffer | |
parent | 41d2eca3b12de0c23f18d8f54918d4e71c1a8b56 (diff) | |
download | netsurf-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.c | 2 |
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; } |