我希望在一个集群上使用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")))))
但是现在emacs找不到字体了!
所以我的问题是,我该如何帮助emacs找到字体?我如何指定字体的路径?