开发者

Letterspacing in GNU Emacs

Letterspacing in GNU Emacs

I'm using GNU Emacs on 64bit Ubuntu. Monaco font works well, except the gap between each letter is too wide, thus causing each line of codes to spread too widely. I thought maybe it was a problem with the font, but then Ubuntu terminal was capable of handling the exactly same font with a narrower horizontal margin.

Is there any method I can try to adjust开发者_如何学Python the horizontal linespacing in Emacs?


Have you checked that Emacs and terminal really display the font differently? In your screenshot, the font size itself in Emacs is bigger.

Anyways, you can choose different spacing values when setting a font by appending them to the font name, e.g. "Monaco-10:spacing=110". Try if you can get the behaviour you want this way.

EDIT: Maybe the second paragraph of my answer should be disregarded. I basically guessed this based on the output of describe-font, but further experiments with it didn't yield satisfying results.


Try:

M-x customize-face

At the prompt enter "default"

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

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


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

it definitely solves my issue.

The fix is rather simple, download the linux version of Monaco font and everything would be fine. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜