2

I'm using Classic Console font in buffers. Unfortunately for some reason letter spacing is terrible in Emacs while being correct in Konsole and other programs.

Text in Emacs: Classic Console in Emacs

Text in Konsole (using the same font and size): Classic Console in Konsole

Any idea how to fix this?

Another case with Courier Prime:

enter image description here

'(default ((t (:family "Courier Prime" :foundry "QUQA" 
               :slant normal :weight normal :height 83 
               :width normal :spacing 10))))

:spacing 10 did not work.

  • What exactly font used in Emacs? Type C-u C-x = on any character. Compare with xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*' or fc-list :spacing=mono like commands. – gavenkoa Apr 2 '15 at 19:56
  • I have filling that in Konsole you use 13px font, but 12px in Emacs. – gavenkoa Apr 2 '15 at 19:58
  • How are you setting the font? Note the emacs sample use lots of different faces, some bold. If these have different width to regular letters then you will see uneven spacing. – Andrew Swann Apr 10 '15 at 7:06
  • I had the same issue and fixed it for the font called "Hack". All it took was to set the font spacing. (set-default-font "Hack-11:spacing=110") or in your case: (set-default-font "Classic Console-11:spacing=100") – Pedro Penna Oct 23 '15 at 2:50
  • @PedroPenna, that didn't work for me; I've put (set-default-font "Courier Prime:spacing=10") – Necktwi Sep 17 at 15:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.