neolode / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Improve horizontal bar (VT100 graphics) #326

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following patch improves the substitute used for VT100 line drawing 
graphics "middle horizontal line" (code 'q') for fonts that lack the box 
drawing glyphs.

--- wintext.c~  2011-07-13 21:33:48.000000000 +0200
+++ wintext.c   2012-03-20 13:45:56.034547200 +0100
@@ -51,7 +51,7 @@ static const wchar linedraw_chars[LDRAW_
   {0x253C, '+'},                   // 0x6E 'n' Crossing lines
   {0x23BA, 0x00AF, '-'},           // 0x6F 'o' High horizontal line
   {0x23BB, 0x00AF, '-'},           // 0x70 'p' Medium-high horizontal line
-  {0x2500, '-'},                   // 0x71 'q' Middle horizontal line
+  {0x2500, 0x2015, 0x2014, '-'},   // 0x71 'q' Middle horizontal line
   {0x23BC, '_'},                   // 0x72 'r' Medium-low horizontal line
   {0x23BF, '_'},                   // 0x73 's' Low horizontal line
   {0x251C, '+'},                   // 0x74 't' Left "T"

Original issue reported on code.google.com by towom...@googlemail.com on 20 Mar 2012 at 12:57

GoogleCodeExporter commented 9 years ago
Thanks, makes sense. Applied at r1256 on 1.0 branch.

Original comment by andy.koppe on 29 Mar 2012 at 5:09

GoogleCodeExporter commented 9 years ago
I couldn't find a font benefits from this (although I haven't looked very 
hard), so verifying by checking the source code only.

Original comment by andy.koppe on 6 May 2012 at 6:51