GNOME Bugzilla – Bug 315486
pi character is rendered too high and too far to the left
Last modified: 2006-04-12 07:10:23 UTC
Hi, This bug was reported both to Debian and Redhat at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288662 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=140681 The issue seems to be with the Pi glyph under UTF-8 locales. Bye,
I don't see why Pi is in vte_unichar_is_local_graphics. I can see how that would have been useful five years ago, but not now. I will remove it after GNOME 2.14 is out.
Any idea which of these we should change: case 0x00a3: /* british pound */ case 0x00b0: /* degree */ case 0x00b1: /* plus/minus */ case 0x00b7: /* bullet */ case 0x03c0: /* pi */ case 0x2190: /* left arrow */ case 0x2191: /* up arrow */ case 0x2192: /* right arrow */ case 0x2193: /* down arrow */ case 0x2260: /* != */ case 0x2264: /* <= */ case 0x2265: /* >= */ case 0x23ba: /* scanline 1/9 */ case 0x23bb: /* scanline 3/9 */ case 0x23bc: /* scanline 7/9 */ case 0x23bd: /* scanline 9/9 */ case 0x2409: /* HT symbol */ case 0x240a: /* LF symbol */ case 0x240b: /* VT symbol */ case 0x240c: /* FF symbol */ case 0x240d: /* CR symbol */ case 0x2424: /* NL symbol */ case 0x2592: /* checkerboard */ case 0x25ae: /* solid rectangle */ case 0x25c6: /* diamond */ The change will probably be to try to find a glyph in the font for them, and fall back to the current code, instead of the other way which is what's happening now. The slight problem with that is that we may prefer the local rendering to a glyph from a random font that happens to have a glyph for it. That's not easy to fix though.
Ok, I was wrong. The problem indeed is that Bitstream Vera has a Pi glyph and since by default vte uses Xft directly, it just picks the Pi glyph from the first font that covers it. The proper font selection is indeed implemented in Pango and won't suffer from this problem as much. No idea how to fix it at this stage without serious performance penalty. Need to think more about it...
*** This bug has been marked as a duplicate of 144456 ***