【问题标题】:Emacs 23.3.1 fixedsys font issueEmacs 23.3.1 fixedsys 字体问题
【发布时间】:2014-11-29 09:00:05
【问题描述】:
  1. 我已经下载了Fixedsys.TTF字体。

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

  3. 我已打开 Emacs 并导航到选项 > 设置默认字体...并选择 FixedsysTTF 并指定 Monospaced 和大小 11。然后我使用 Options > Save Options。
  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 Regular 10。虽然实际显示的字体甚至不是 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 truetype emacs23


    【解决方案1】:

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

    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 文件中

    【讨论】:

      【解决方案2】:

      只是让您知道,您指向 Fixedsys.TTF 字体的链接指向具有可疑凭据的视频网站。

      • 克里斯

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-03-17
        • 2023-03-18
        • 2017-07-19
        • 1970-01-01
        相关资源
        最近更新 更多