I am planing ahead of doing some work on optimizing stuff, mostly in gui_gtk_x11.c and that goes without problems. However guifontwide is kind of puzzling, since I can't make proper starting point that shows actual expected results in gvim, no matter what I do.
To have something to compare gvim with, I am using vim in kitty terminal (which is very good with fonts), so terminal does all the font heavy lifting. Tests are performed with Cascadia Code as primary font (any mono font would do of course) and ttf-joypixels 6.6.0-1 on Arch linux, which should be double char replacement and ideal wide font example. Test 1: With joypixels font not available, I expect to see double-width characters taken from primary font, they are usually pale outlined characters, which is correct both with vim/kitty and gvim. Test 2: With joypixels available (assuming that I set guifontwide properly), I expect to see double-width substitutions, colorful emojis/flags taken from secondary font, for all available double-width characters. Vim on kitty does exactly this. Gvim instead just shows double-width space for them but doesn't show anything. When I move normal cursor over such character I can confirm it is double-width. Possible causes for gvim not showing JoyPixels: - JoyPixels is not a good example? Maybe kitty manages to use it but Pango on gvim doesn't? - I need to set ~/.config/fontconfig/fonts.conf differently before gvim can use this font? - My `:set guifontwide` is somehow incorrect? I can send screenshots or try anything you suggest. Since I plan doing some work that includes guifontwide, before doing that I need to see one good working example of `guifont` and `guifontwide` working together. Fonts don't matter as long as they differ. No matter what I try (with different fonts) I have yet to see if guifontwide actually works in production. Ideally I would like to see Cascadia/JoyPixels working together but I'd be happy to see _any_ example that shows current gvim working with double-width fonts. I am currently tracking everything from gui.c -> gui_get_wide_font() and sticking printfs everywhere but if anybody can show working example of this two working together it would be great help. Suggestions welcome. Thank you. -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/YViozoj/mX2JaJXK%40ryzen.me.
signature.asc
Description: PGP signature