Hi Bram, 2014/8/6 Wed 21:52:36 UTC+9 Bram Moolenaar wrote: > Patch 7.4.393 > Problem: Text drawing on newer MS-Windows systems is suboptimal. Some > multi-byte characters are not displayed, even though the same font > in Notepad can display them. (Srinath Avadhanula) > Solution: Add the 'renderoptions' option to enable Direct-X drawing. (Taro > Muraoka) > Files: runtime/doc/eval.txt, runtime/doc/options.txt, > runtime/doc/various.txt, src/Make_cyg.mak, src/Make_ming.mak, > src/Make_mvc.mak, src/eval.c, src/gui_dwrite.cpp, > src/gui_dwrite.h, src/gui_w32.c, src/gui_w48.c, src/option.c, > src/option.h, src/version.c, src/vim.h, src/proto/gui_w32.pro
I had a report that this DirectWrite patch has a problem when showing an italic character at end of the line. Here are screen shots: https://camo.githubusercontent.com/f3e4144fac9a6387e5f4bd2a003c3838343a6fd1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313535363331312f3131383036322f62633161633935382d366336312d313165322d393235342d3763356361376338663632612e6a7067 https://camo.githubusercontent.com/24e5c9da6ae02e0902033ba618f74b9f2eb73d37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313535363331312f3131383036332f63323666363830342d366336312d313165322d383537622d3465613665636435353236352e6a7067 Overhangs are not shown. The following patch fixes the problem: --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -2591,7 +2591,7 @@ if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector) { DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen, - TEXT_X(col), TEXT_Y(row), FILL_X(cells), FILL_Y(1), + TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1), gui.char_width, gui.currFgColor); } else Regards, Ken Takata -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
