Bug 63796

Summary: weston-terminal too wide in Asian locales
Product: Wayland Reporter: Jens Petersen <petersen>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: screenshot
screenshot

Description Jens Petersen 2013-04-22 06:32:59 UTC
Created attachment 78320 [details]
screenshot

When I start weston-terminal in Japanese locale
the terminal is too wide.  I think it needs to be
able to handle fonts with wide-characters better.
(Also it seems only able to use a single font.)

This is with weston-1.1.0 (in current Fedora 19 development).
Comment 1 Jens Petersen 2013-04-23 02:28:35 UTC
Created attachment 78351 [details]
screenshot
Comment 2 Rob Bradford 2013-07-08 11:29:33 UTC
Peng Wu posted some patches onto the list which should address this issue.
Comment 3 Kristian Høgsberg 2013-07-08 21:58:16 UTC
commit f291f2055367cbb1e4f00f269c2c298c642d3ba6
Author: Peng Wu <peng.e.wu@gmail.com>
Date:   Thu Jun 6 15:32:41 2013 +0800

    Use the average width of ASCII glyphs for cell width
    
    As some CJK fonts are dual-width, calculate the average width of ASCII
    glyphs and use that instead of the max_x_advance of the font.  This is
    what VTE does too.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=63796

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.