我已经下载了Fixedsys.TTF字体。
我已将字体移至/ usr / share / fonts / truetype目录。
我已经注意到我的.emacs文件:
'(default ((t (:stipple nil :background "#232323"
:foreground "#e6e1de" :inverse-video nil :box nil
:strike-through nil :overline nil :underline nil
:slant normal :weight semi-bold :height 110
:width normal :foundry "unknown" :family "FixedsysTTF"))))
我在Emacs中做了一些工作,并使用Ctrl + c Ctrl + x关闭它。
然后我重新打开Emacs,它不会产生相同的字体。相反,如果再次执行步骤2,我会发现Emacs已默认设置为Monospace Regular10。尽管实际上显示的字体甚至不是Monospace Regular 10。
为了纠正这种情况,我需要再次手动执行步骤2。然后一切都很好,直到我退出并再次启动。
我的问题是对此是否有简单的解决方法?或者,当我执行第2步时,后台会调用什么Lisp函数,这样我就可以破解.emacs文件来强制加载fixedsys。
PS:我确实尝试了字体Fixedsys Excelsior,但对于在上述Emacs版本中(不是说仅在上述版本中会发生这种情况,但我仅限于23.3.1),这是一个完美的选择。 'A'字符使后继字符与'A'重叠。但是,此版本的Fixedsys不会导致Emacs出现问题,并且它会记住退出和重新打开时的字体。因此,要么:用重叠的'A'纠正这种情况,要么使另一个版本的Fixedsys(在步骤1中链接的版本)正常工作。我实际上确实更喜欢Fixedsys Excelsior,但是我不能忍受重叠的“ A”。仅供参考,当我使用Fixedsys Excelsior时,在.emacs文件中得到以下信息:
'(default ((t (:stipple nil :background "#232323"
:foreground "#e6e1de" :inverse-video nil :box nil
:strike-through nil :overline nil :underline nil :slant normal
:weight normal :height 117 :width normal :foundry "unknown"
:family "Fixedsys Excelsior 3.01"))))
同样,从上方的Fixedsys Excelsior链接下载字体,然后将TTF移至/ usr / share / fonts / truetype。
有人可以帮忙解决这两个问题吗?
我已经找到了解决此问题的方法:
(set-face-attribute 'default nil :font "Fixedsys Excelsior 3.01-L-12")
进入我的.emacs文件仅告诉您,您到Fixedsys.TTF字体的链接指向具有可疑凭据的视频网站。