Dominique Pelle wrote: > I see a Unicode rendering bug with gVim (GTK2 GUI). > Vim in GNOME terminal is OK. > > Steps to reproduce: > > 1) Open utf-8 file [1] with: > > $ wget http://dominique.pelle.free.fr/unicode-test.txt > $ vim -f -g -u NONE -c 'set guifont=Monospace\ 16' unicode-test.txt > > 2) If you move the cursor around to go on top of characters, they > are displayed correctly as in screenshot [2]. > > 3) If you press CTRL-L to redraw, then characters are displayed > incorrectly as in screenshot [3]. Notice that the double breve, double > macron (etc) span only one character, they should span 2 characters. > > It is not a recent bug since I can reproduce it with > gvim 7.2.330, 7.2.446 and 7.3e BETA (2517:87e49236d219). > > [1] http://dominique.pelle.free.fr/unicode-test.txt > [2] http://dominique.pelle.free.fr/pic/combining-diacritical-ok.png > [3] http://dominique.pelle.free.fr/pic/combining-diacritical-bad.png
Well, drawing a double-width combining character over a single-width character is not handled yet. There clearly is more work to do in this area. Guessing how to solve this won't work. I hope someone can dive into how this works exactly, what all the numbers that we get from Pango mean, and come up with a clean solution. And add comments about why things are done, because the current code doesn't explain why it's doing what it's doing, making it very hard to see what's intended and what is going wrong. Since this is not a regression, I'll keep the latest fix. It at least fixes the most obvious problems with accents. -- How To Keep A Healthy Level Of Insanity: 13. Go to a poetry recital and ask why the poems don't rhyme. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
