this post was submitted on 24 Nov 2023
2 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

The Commit Mono font has a feature that it calls "smart kerning". Monaspace has a similar feature that it calls "texture healing." Characters are moved around slightly, or swapped out for a slightly larger or smaller character to even out the spacing, for example, when a wide character like an 'm' is followed by a narrow character like an 'l'.

The effect looks nice on their web sites. It worked in VSCode, but not in Emacs. The "smart kerning" / "texture healing" features did not seem to be activated when I tried the fonts in Emacs.

How would I get this to work in Emacs? The Monaspace docs say you have to add "'calt'" to "editor.ligatures" in the VSCode Settings. Commit Mono just worked without changing the settings.

I might end up hating the moving around, but I'd have to try it for a few hours to see. I'm just not sure how to set that up in Emacs, or if Emacs supports that sort of thing.

top 1 comments
sorted by: hot top controversial new old
[–] cerement@slrpnk.net 2 points 1 year ago

(I have no experience with Emacs) but it looks like getting Emacs to support ligatures requires a bit more futzing – the instructions for getting Fira Code ligatures to work looks a bit involved