[PATCH 0/2] terminal: Handle dual-width fonts

Peng Wu peng.e.wu at gmail.com
Thu Jun 6 00:32:40 PDT 2013


In CJK locale, there are some dual-width fonts.
When start weston terminal in CJK locale, the glyph will occupy
many empty space.
I changed to use the average ASCII glyph width instead of
the maximum glyph width, like vte project.

Peng Wu (2):
  As some CJK fonts are dual-width, use the average width of ASCII
    glyphs instead of the max_x_advance of the font, just like the
    vte project.
  Some CJK glyphs are wide, which occupy two columns. If the glyph
    is wide, then use two columns instead of one.

 clients/Makefile.am |  2 +-
 clients/terminal.c  | 69 ++++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 56 insertions(+), 15 deletions(-)

-- 
1.8.1.4



More information about the wayland-devel mailing list