On Wednesday, September 11, 2013 7:16:29 AM UTC-5, ZyX wrote: > > Are there actually a variable number of characters shown, or is this also > > related to font? > > > > Only to font. Number of characters is the same. > > > > > Is this because there is actually a font *named* "Monospace" on Linux, > > which is a proportional font? > > > > “l” glyph looks differently in chromium (2-1.png) and in kcharselect with > Monospace selected (2-2.png). > > > > 2-1.png: > http://img-fotki.yandex.ru/get/9356/9151298.3/0_9ec11_7f2bc7af_orig.png > > 2-2.png: > http://img-fotki.yandex.ru/get/9492/9151298.3/0_9ec12_aef63d40_orig.png > >
Why would the same font look different in different browsers?! > > . Also “Monospace” is not a proportional font. > > No? I know people have had trouble using it in Vim before, at least one person decided it was because that font wasn't actually fixed-width: https://groups.google.com/d/msg/vim_use/DxSsvfzVAFI/ZbWBJrmHlsUJ If the 'monospace' font has variable-width characters, isn't it by definition not actually monospace then? I'm a little frustrated to discover there's a font with a name matching a generic family name at all; it prevents any webpage from setting the default user-selected monospace font. But as you say, there are going to be a lot of people using it... > > > On my TODO list is an item to detect the actual font being used by Vim > > (falling back to "monospace" as a last resort). There is already an option > > to specify the font (though it is awkward to use if you want to have a > > comma-separated list). Maybe I should fix that up to be easier to use and > > recommend that people actually use it (like the recommendation to specify > > encoding explicitly)? > > > > Maybe set default to a list of common monospace fonts with an addition of “, > monospace” as the very last resort for browser? Chromium has too many users > to just ignore this problem. > > Yes, that's what i meant by "as a last resort". This sounds like a reasonable alternative, to put a list of common fonts in there. The user could always override that. > > Google code uses the following as font family: “Monaco,'DejaVu Sans > Mono','Bitstream Vera Sans Mono','Lucida Console',monospace”. > > Github: “Consolas,"Liberation Mono",Courier,monospace”. > > Bitbucket: “"Bitstream Vera Sans Mono","DejaVu Sans Mono",Monaco,monospace”. Thanks. I'll probably try implementing: 1. detect font used by Vim if possible 2. fall back to DejaVu/Consolas/Bitstream Vera/Monaco in some order 3. Fall back to "monospace" which *intends* to select a generic font family, but apparently on some systems is an actual font name which might not be fixed-width after all Any hints on getting font name from X/Motif fonts? Windows fonts and GTK fonts aren't too bad... -- -- 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. For more options, visit https://groups.google.com/groups/opt_out.