Emacs 23.3.1 fixedsys字体问题

问题描述 投票:1回答:2
  1. 我已经下载了Fixedsys.TTF字体。

  2. 我已将字体移至/ usr / share / fonts / truetype目录。

  3. 我已打开Emacs并导航至选项>设置默认字体...,然后选择FixedsysTTF并指定等宽且大小为11。然后使用“选项”>“保存选项”。
  4. 我已经注意到我的.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"))))
    
  5. 我在Emacs中做了一些工作,并使用Ctrl + c Ctrl + x关闭它。

  6. 然后我重新打开Emacs,它不会产生相同的字体。相反,如果再次执行步骤2,我会发现Emacs已默认设置为Monospace Regular10。尽管实际上显示的字体甚至不是Monospace Regular 10。

  7. 为了纠正这种情况,我需要再次手动执行步骤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 true-type-fonts emacs23
2个回答
0
投票

我已经找到了解决此问题的方法:

  1. Downloaded this modified version of FixedSYS
  2. 移至/ usr / share / fonts / truetype
  3. 已注入:(set-face-attribute 'default nil :font "Fixedsys Excelsior 3.01-L-12")进入我的.emacs文件

-1
投票

仅告诉您,您到Fixedsys.TTF字体的链接指向具有可疑凭据的视频网站。

  • 克里斯
© www.soinside.com 2019 - 2024. All rights reserved.