【发布时间】:2014-11-29 09:00:05
【问题描述】:
我已经下载了Fixedsys.TTF字体。
我已将字体移至 /usr/share/fonts/truetype 目录。
- 我已打开 Emacs 并导航到选项 > 设置默认字体...并选择 FixedsysTTF 并指定 Monospaced 和大小 11。然后我使用 Options > Save Options。
-
我在我的 .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 Regular 10。虽然实际显示的字体甚至不是 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。
有人可以帮助解决这些问题吗?
【问题讨论】:
标签: emacs fonts truetype emacs23