larsenwork / monoid

Customisable coding font with alternates, ligatures and contextual positioning. Crazy crisp at 12px/9pt. http://larsenwork.com/monoid/
7.85k stars 170 forks source link

Broken "&&" ligature on Kitty terminal #235

Open Waces opened 4 years ago

Waces commented 4 years ago

Basically, when using Monoid on Kitty terminal, the "&&" ligature appears small, though for what I tested it only happens with this one specific ligature from this font, on Kitty; All others ligatures from Monoid work fine, the "&&" ligature from other fonts (tested with Victor Mono and Fira Code) appear fine in that terminal, the "&&" ligature from Monoid is fine at least on other terminals/text editors for me.

Screenshot_200417_194718 Screenshot_200417_191622

[Because of how specific it is] I honestly don't know if it's actually something to do with Kitty, if it's Monoid, or both, sorry in advance if this is not an issue with Monoid.

kovidgoyal commented 4 years ago

This will be because the && ligature is wider than two characters, breaking the monospace promise of the font. https://sw.kovidgoyal.net/kitty/faq.html#some-special-symbols-are-rendered-small-truncated-in-kitty

Waces commented 4 years ago

Doing some very rough measuring in FontForge (as someone who doesn't known almost anything about font making), the vector curves seem to not be more than two characters (the glyph being 1024 and the vector stopping before 2048), but then, I don't know if it also has to do with ampamp being offset to the right of the character box while other ligatures (at least for what I saw) are offset to the left