Emacs: how to indicate where the font of the true type is located?

I want to use the DejaVu font in emacs, in a cluster - and I do not have access to install fonts in the system. I put fonts (they are free) in ~/.fonts . I want to use DejaVuSansMono.ttf . Usually I just fit in .emacs:

 (custom-set-variables '(default ((t (:inherit nil :stipple nil :background "#ffffb1" :foreground "#141312" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 173 :width normal :foundry "monotype" :family "DejaVu Sans Mono"))))) 

But now emacs cannot find the font!

So my question is: how can I help emacs find the font? How to specify a font path?

+4
source share
1 answer

It looks like bdf-directory-list fix it.

 (setq bdf-directory-list '("/path/to/fonts")) 

I can’t try right now - will be back later.

0
source

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


All Articles