diff options
-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; } |