macvim icon indicating copy to clipboard operation
macvim copied to clipboard

MacVim does not display Tibetan Text properly

Open madmansnest opened this issue 6 years ago • 4 comments

Even though in latest OS X versions there has been no problems with Tibetan text display, and even though MacVim uses the standard NSTextView, it still fails to display Tibetan text properly, just like Terminal.app used to many OS X versions ago.

To Reproduce: Open MacVim and input some relatively complex Tibetan text like ཧཱུྃ། or བསྒྲིགས་པ་. In order to see what it should look like, open TextEdit and input the same text.

This is current MacVim, unsatisfactory: image

This is Terminal.app in OS X Mojave, bad kerning, but satisfactory: image

This is what is should like, ideal: image

madmansnest avatar Dec 21 '19 03:12 madmansnest

@madmansnest Thank you for an issue,

It's true, that some font parameters are not loaded from font correctly, but not many people was interested in it earlier. You can try to modify linespace manually to make things a bit smoother for now.

eirnym avatar Dec 23 '19 14:12 eirnym

Could you share with us a bit more information, such as some texts and the font you use (it's home page is preferable and tell if it's free-to-use (it'll be much harder to test the same over a paid one)

eirnym avatar Dec 23 '19 14:12 eirnym

Text Example: ཧཱུྃ༔ ཨོ་རྒྱན་ཡུལ་གྱི་ནུབ་བྱང་མཚམས༔ པདྨ་གེ་སར་སྡོང་པོ་ལ༔ ཡ་མཚན་མཆོག་གི་དངོས་གྲུབ་བརྙེས༔ པདྨ་འབྱུང་གནས་ཞེས་སུ་གྲགས༔ འཁོར་དུ་མཁའ་འགྲོ་མང་པོས་བསྐོར༔ ཁྱེད་ཀྱི་རྗེས་སུ་བདག་བསྒྲུབ་ཀྱི༔ བྱིན་གྱིས་བརླབ་ཕྱིར་གཤེགས་སུ་གསོལ༔ གུ་རུ་པདྨ་སིདྡྷི་ཧཱུྃ༔ Font download page: https://collab.its.virginia.edu/wiki/tibetan-script/Jomolhari.html

madmansnest avatar Dec 23 '19 14:12 madmansnest

MacVim actually doesn’t use NSTextView by default and uses CoreText renderer to get more flexibility in how it renders text. I will need to take a look but this is likely similar to other font issues we have had.

ychin avatar Dec 24 '19 03:12 ychin