mickeynp / ligature.el

Display typographical ligatures in Emacs
GNU General Public License v3.0
380 stars 28 forks source link

Need help to diagnose why ligatures sometimes renders with extra spacing #56

Open LukeXuan opened 3 months ago

LukeXuan commented 3 months ago

First of all, I don't think this is a ligature.el problem (or maybe luck is just against me), but I need some help to check what went wrong.

I'm using doom emacs and whether I configuring ligature.el directly or use the ligature module from doom, the ligatures are sometimes rendered with extra spacing as shown in the screenshot: image

This happens randomly and I'm having a hard time pin down the exact sequence to 100% cause it, but I know sometimes they appear on a fresh boot emacs, sometimes they appear like this after a while. I would like to know whether there is any code snippets/variable I can look into when this thing happens and compare it with normal state to see what went wrong.

My conjecture: something in doom emacs is breaking, but I need some help to pin down the exact place so I can either fix it or open an issue on doom's repo. Thanks in advance!

For reference, I'm using custom built emacs 29.3 with the following configuration,

./configure --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-webp --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-pgtk --with-native-compilation --enable-link-time-optimization --without-pop --with-tree-sitter
mickeynp commented 3 months ago

If it's not a ligature.el issue, then you should take it up with the doom emacs people.

LukeXuan commented 3 months ago

If it's not a ligature.el issue, then you should take it up with the doom emacs people.

I totally agree. I just want to get some help from domain specific experts, specifically on whether there is any emacs variables I can inspect when the extra spacing happens that tells me what exactly went wrong.