Use the average width of ASCII glyphs for cell width
authorPeng Wu <peng.e.wu@gmail.com>
Thu, 6 Jun 2013 07:32:41 +0000 (15:32 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 8 Jul 2013 21:57:59 +0000 (17:57 -0400)
commitf291f2055367cbb1e4f00f269c2c298c642d3ba6
tree47db466ca097f62b9ced74b2264c0e8b84021596
parentaaadc774a7a0cdb4b377d37608e554f470c67d57
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
clients/terminal.c