GNOME Bugzilla – Bug 709584
U+258F too wide, U+2595 invisible
Last modified: 2014-04-06 18:22:42 UTC
With 6x13 pixel font (Monospace 8), the character U+258F (left one eighth block) is 2px wide, wider than U+2581/U+2594 (upper/lower one eighth block). Furthermore, U+2595 (right one eighth block) is invisible.
Created attachment 256655 [details] text file for testing
Created attachment 256658 [details] [review] Fix
Created attachment 256662 [details] text file for testing, v2 Improved testing file. Unfortunately it reveals that the top/right 1/8 characters don't always perfectly align with the bottom/left 7/8 ones.
Created attachment 256667 [details] [review] Fix v2 This patch also addresses the previous issue.
Created attachment 256766 [details] [review] Fix v3 Created an even better test case (containing every character in 2580-259f in various ways of being adjacent to each other), made it part of the patch. Added a reference to this file in a comment. The actual code is the same as the previous version.
I changed the code a bit so as to not put the arithmetic inside the MAX, and committed to 0-36. Thanks for the patch!