MacVim: finer font rendering compared to TextMate

This has been bothering me for some time. With the same source file, the same theme (almost) the thickness of the text between MacVim and Textmate is different.

I contacted the screenshot .. here . It has 3 editors. Leftmost is sublime v3, middle is MacVim, and rightmost is TextMate. The goal is to compare the thickness of the font. MacVim and sublime text are much thicker, while TextMate is thinner (and more complex .. personal choice :)). All this on Mac OS X Mavericks with a retina display.

I hope everyone will see the differences in the screenshot.

Note: for MacVim, switching the anti-aliasing option makes some difference, but still nothing compared to TextMate.

Questions:

  • Is there any configuration in VIM (or Mac OS) that determines the thickness of the font? I am the main user of Vim, therefore I am interested in VIM solutions
  • (Out of curiosity) Why is the rendering different? I would suggest that all editors should rely on the basic OS APIs
+6
source share
1 answer

This is due to sub-pixel smoothing. Textmate disables this for themes with dark backgrounds: https://github.com/textmate/textmate/wiki/Hidden-Settings#controlling-font-smoothing

to smooth the MacVim subpixel, you can disable it with the terminal command:

defaults write org.vim.MacVim AppleFontSmoothing -int 0 
+11
source

Source: https://habr.com/ru/post/971829/


All Articles