rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Issue with light and thin font weights #207

Open geraldus opened 8 years ago

geraldus commented 8 years ago

Hi, I have no idea how this issue addressed in other editors, but it will be very nice to be able to adjust embolden font weight.

Here is what I'm talking about. There are several monospaced fonts (such as Iosevka, Source Code Pro, and Roboto Mono) which come with light and thin variants. Personally I find thin fonts easier to read. For example, Source Code Pro have a lot of weights and I can select preferred wight from font options, but in all cases bold weight is rendered identically. In case of Source Code Pro bold weight is chosen to embolden text, it's okay if regular is used as base weight: 2016-01-30 16 41 22 But if I choose as base weight something lighter than regular it looks very unnatural: light as base weight 2016-01-30 16 43 44 Even with normal set as base weight bold looks too heavy: 2016-01-30 16 44 59

I think bold weight could be selected automatically according to base weight and weight that selected font provides, however implementing such choice algorithm is quite tricky, because some fonts might have bold, semibold, heavy weight and others are not. I think the best way would be to provide some special option what weight to use for embolden text which user can set (for example, there is no such option in Emacs, but I can iterate list of all faces and change weight for all embolden faces).

Thank you.