1

Using macOS Sonoma on M1 Mac Mini and M1 Air. Emacs from https://emacsformacosx.com.

I have Inconsolata installed in ~/Library/Fonts/, validated by Font Book. My .emacs calls up .emacs-custom.el, at the end of which I have (set up via menubar Options > Set Default Font ..., and saved via Options > Save Options, tidied, without the generated comments)

(custom-set-faces
 '(default ((t (:height 140 :family "Inconsolata" :foundry "nil"
                :slant normal :weight medium :width normal)))))

Under Emacs 28.2, this worked fine. Under 29.2 & 29.3, it "takes" for the current frame only. New frames use Helvetica; after restarting Emacs all frames use Helvetica.

I find that if I set the default font to Menlo or Monaco, Emacs uses Menlo/Monaco after a restart.

I would really prefer to use Inconsolata (it's narrower than Menlo, for a start). What should I do?

5
  • 1
    Maybe see these: reddit.com/r/emacs/comments/167y3vl/…, reddit.com/r/emacs/comments/6mo9mi/….
    – Drew
    Commented Apr 17 at 17:09
  • Thanks, Drew, that was it. I could answer this Q myself? Commented Apr 17 at 18:55
  • Yes, please do. I thought I saw your question already (here? somewhere else?), but I didn't find a duplicate here.
    – Drew
    Commented Apr 17 at 20:07
  • I first posted on StackOverflow but it got anonymously closed as not about programming (though IMO there are several other Qs there in the same vein). Commented Apr 18 at 7:36
  • Oh, right. That was it.
    – Drew
    Commented Apr 18 at 15:00

1 Answer 1

1

I’m not sure where I originally got Inconsolata from; you can find it at Raph Levien’s site, downloadable in OpenType (.otf) format.

Drew suggested I look here and here, and the conclusion is that it’s likely the .otf format causing the trouble.

You can get Inconsolata in .ttf (TrueType Font) format from Google Fonts. The download contains many individual faces, but they’re combined in Inconsolata-VariableFont_wdth,wght.ttf.

Moving this into ~/Library/Fonts, and deleting Inconsolata.otf, the Apple Font Book app finds it OK. Emacs only finds Inconsolata if I select the "All Fonts" collection (i.e. not the "English" collection), but having done that it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.