Writing to GNU Emacs

Emacs letterspacing

I use GNU Emacs on 64-bit Ubuntu. The Monaco font works well, except that the gap between each letter is too wide, which means that each line of code spreads too wide. I thought maybe this is a font problem, but then the Ubuntu terminal was able to handle the exact same font with a narrower horizontal edge.

Is there any method that I can try to adjust the horizontal line in Emacs?

+4
source share
3 answers

Have you verified that Emacs and the terminal actually render the font differently? In the screenshot, the font size in Emacs is larger.

In any case, you can choose different distance values ​​when setting the font, adding them to the font name, for example. "Monaco-10:spacing=110" . Try it if you can get the behavior you want this way.

EDIT: Maybe the second paragraph of my answer should be ignored. I basically guessed this based on the describe-font output, but further experiments with it did not give satisfactory results.

+3
source

Try:

Mx customize-face

At the command prompt, enter "default"

I adjust the font width from medium to condensed and see if this helps.

Otherwise, you can just try a different font. SHIFT + Mouse-1 should bring up a menu where you can change the default font from Courier.

+2
source

I have the same problem, but then I got into this post: http://www.gringod.com/2006/11/01/new-version-of-monaco-font/

it definitely solves my problem.

The fix is ​​pretty simple, download the Monaco font version for Linux and everything will be fine. :)

+1
source

Source: https://habr.com/ru/post/1340560/


All Articles