jkitchin / ov-highlight

A persistent highlighter for Emacs
60 stars 6 forks source link

markup leaks #11

Open oatmealm opened 3 years ago

oatmealm commented 3 years ago

Was wondering why this happens and if there's a quick way to fix/re-align the markup.... it happens quite often, but still didn't figure when... you can see in the example bold and color leaking into the footnote anchor. Otherwise, very often it's a one letter shift in the text.

gnome-shell-screenshot-R8LV00

jkitchin commented 3 years ago

I don't know what causes that. If I had to guess it has something to do with the unicode type characters having a different width than regular characters. That could mean the position used in ov-highlight does not align with the visible placement of the glyphs.

It is also possible it is a bug though.

oatmealm commented 3 years ago

Do overlays support this scenario of variable width fonts? Most often it seems to work just fine.

jkitchin commented 3 years ago

I don't know if there are issues with overlays and variable width fonts.