Friday, 6 September 2019

linux - setting monospaced font on Emacs?

I used to use liberation mono font on emacs (on X11) on an Ubuntu system using the following command and it worked great:


(custom-set-faces
'(default ((t (:inherit nil :stipple nil :background "lightgrey" :foreground "gray20" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :width normal :height 120 :family "liberation mono"))))
'(background "blue")
'(font-lock-builtin-face ((((class color) (background dark)) (:foreground "Turquoise"))))
'(font-lock-comment-face ((t (:foreground "darkred"))))
'(font-lock-constant-face ((((class color) (background dark)) (:bold t :foreground "DarkOrchid"))))
'(font-lock-doc-string-face ((t (:foreground "lightblue"))))
'(font-lock-function-name-face ((t (:foreground "blue"))))
'(font-lock-keyword-face ((t (:bold t :foreground "steelblue"))))
; '(font-lock-keyword-face ((t (:bold t :foreground "CornflowerBlue"))))
'(font-lock-preprocessor-face ((t (:italic nil :foreground "CornFlowerBlue"))))
'(font-lock-reference-face ((t (:foreground "DodgerBlue"))))
'(font-lock-string-face ((t (:foreground "Aquamarine4")))))

It looked like this:


enter image description here


Our system admin upgraded to a new release of Ubuntu and now the font looks completely different in emacs. It doesn't look anti-aliased anymore, appears "less bold" and looks like this:


enter image description here


I'm trying to get it to look like it did before. Basically I want a font appearance that looks as close as possible to the Monaco fixed width font on Mac OS X, which on my terminal looks like this:


enter image description here


How can this be done? Ideas? Cannot figure it out. thanks.

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...