我想在集群上的 emacs 中使用 DejaVu 字体,但我无权在系统范围内安装字体。我将字体(它们是免费的)放入~/.fonts. 我想利用DejaVuSansMono.ttf. 通常我只是输入 .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")))))
Run Code Online (Sandbox Code Playgroud)
但是现在emacs找不到字体了!
所以我的问题是 - 如何帮助 emacs 找到字体?如何指定字体的路径?
看起来bdf-directory-list会修复它。
(setq bdf-directory-list '("/path/to/fonts"))
Run Code Online (Sandbox Code Playgroud)
我现在无法尝试 - 稍后会回来。