Bug 63796 - weston-terminal too wide in Asian locales
Summary: weston-terminal too wide in Asian locales
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 06:32 UTC by Jens Petersen
Modified: 2013-07-08 21:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
screenshot (66.50 KB, text/plain)
2013-04-22 06:32 UTC, Jens Petersen
Details
screenshot (66.50 KB, image/png)
2013-04-23 02:28 UTC, Jens Petersen
Details

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.