Vimr: Unicode rendering is broken when ligatures are turned off.

Created on 22 Feb 2019  ·  12Comments  ·  Source: qvacua/vimr

Hi, thanks for your great work all the time!

Since SNAPSHOT-294 (effective in SNAPSHOT-296 too), non-ascii unicode characters are rendered incorrectly -- such as git markers, powerline fonts, etc. Please see the screenshot:

image

You can see characters like , , , ❯❯❯ are rendered in wrong positions.

Previously I was using SNAPSHOT-293 and it was fine with this version. As new rendering codes have been introduced since 294, I believe this change would be the suspect.

Might be related to #705.

Most helpful comment

I'll have a look at it.

All 12 comments

I'll have a look at it.

Thank you for your great work. The only issue I also face is with unicode; especially the Hindi or Devanagari characters (from India). I have a screen recording. Attaching here. I am showing how it works in neovim and in vimr.

vimr-hindi

Could you attach a simple text file and a screenshot how it should look?

This is the text file containing characters from Hindi.
devanagari.txt

It should look like this
term-hindi

I have also created a gist for reference for editor makers; screenshot in comment. https://gist.github.com/jangid/0d38bbf4e22fb93a166adab9bbc68b08

This is strange. When I open the file, I get the following rendering:

Screenshot 2019-03-10 at 19 12 30

which seems to be correct.

This is what I get (vimr 0.26.3, macOS 1.14 Mojave):

image

I see. I have the "Use Ligatures" in the Appearance Preferences turned on. If I turn it off, the rendering is broken. @wookayin, @jangid: Please turn it on until the bug is fixed.

Great point! That works like a charm --- all the unicode markers including powerline symbols are rendered correctly with "Use Ligatures" turned on.

Please try https://github.com/qvacua/vimr/releases/tag/v0.26.4-307 (also with ligatures turned off 😀).

This build is working👌. Although there are more issue related to Hindi i.e. Devanagari rendering. But I suppose those needs to be fixed in NeoVim. Attached is text file and screenshot.

sample.txt
sample

@jangid : Try to turn on "Use Ligatures" in the Appearance Pref. The rendering looks better (at least for me).

Yes. This works reasonably. Thanks.

11 मार्च 2019 को अ 5:18 पर Tae Won Ha notifications@github.com ने लिखा :

@jangid : Try to turn on "Use Ligatures" in the Appearance Pref. The rendering looks better (at least for me).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikl picture mikl  ·  3Comments

robertgzr picture robertgzr  ·  7Comments

crisidev picture crisidev  ·  7Comments

pjg picture pjg  ·  8Comments

nornagon picture nornagon  ·  3Comments