简体   繁体   English

Emacs 23.3.1 fixedsys 字体问题

[英]Emacs 23.3.1 fixedsys font issue

  1. I have downloaded the Fixedsys.TTF font.我已经下载了Fixedsys.TTF字体。

  2. I have moved the font into the /usr/share/fonts/truetype directory.我已将字体移动到 /usr/share/fonts/truetype 目录中。

  3. I have opened Emacs and navigated to Options > Set Default Font... and selected FixedsysTTF and specified Monospaced and size 11. I then used Options > Save Options.我打开了 Emacs 并导航到选项 > 设置默认字体...并选择了 FixedsysTTF 并指定了等宽和大小 11。然后我使用了选项 > 保存选项。
  4. I have noticed in my .emacs file:我在我的 .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. I do some work in Emacs and close it with Ctrl + c Ctrl + x .我在 Emacs 中做了一些工作并用Ctrl + c Ctrl + x关闭它。

  6. I then reopen Emacs and it does not produce the same font.然后我重新打开 Emacs,它不会产生相同的字体。 Rather, if I follow step 2. again I find that Emacs has defaulted to Monospace Regular 10. Although the font that is actually shown is not even Monospace Regular 10.相反,如果我按照第 2 步操作,我再次发现 Emacs 已默认为 Monospace Regular 10。尽管实际显示的字体甚至不是 Monospace Regular 10。

  7. In order to correct this situation I am required to manually follow step 2. again and then everything is fine until I exit and startup again.为了纠正这种情况,我需要再次手动执行第 2 步,然后一切正常,直到我退出并再次启动。

My question is whether or not there is a simple fix for this?我的问题是是否有一个简单的解决方法? Or, what lisp functions are being called in the background when I do step 2 so I can just hack the .emacs file to forcefully load fixedsys.或者,当我执行第 2 步时,在后台调用了哪些 lisp 函数,以便我可以破解 .emacs 文件以强制加载 fixedsys。

PS: I did try the font Fixedsys Excelsior , which is perfect BUT for the fact that in said version of Emacs (that is not to say that this happens in ONLY said version, but I am restricted to 23.3.1) the 'A' character causes the proceeding character to overlap the 'A'. PS:我确实尝试了字体Fixedsys Excelsior ,这是完美的,但事实上,在 Emacs 的所述版本中(并不是说这种情况只发生在所说的版本中,但我仅限于 23.3.1)'A'字符导致前面的字符与“A”重叠。 However, this version of Fixedsys does not cause a problem with Emacs, and it remembers the font on exiting and the re-opening.但是,这个版本的Fixedsys不会导致Emacs出现问题,并且在退出和重新打开时会记住字体。 Therefore, it is either: correct the situation with the overlapping 'A', or get the other version of Fixedsys (the one linked in step 1) to work.因此,要么:纠正重叠“A”的情况,要么让另一个版本的 Fixedsys(在步骤 1 中链接的那个)工作。 I do actually prefer Fixedsys Excelsior, but I cannot live with an overlapping 'A'.我确实更喜欢 Fixedsys Excelsior,但我不能忍受重叠的“A”。 FYI, when I use Fixedsys Excelsior I get the following in my .emacs file:仅供参考,当我使用 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"))))

Again, the font is downloaded from the Fixedsys Excelsior link above and then the TTF moved into /usr/share/fonts/truetype.同样,字体是从上面的 Fixedsys Excelsior 链接下载的,然后 TTF 移动到 /usr/share/fonts/truetype。

Can someone help sort out either of these issues?有人可以帮助解决这些问题吗?

I have found out how to solve this issue:我已经找到了解决这个问题的方法:

  1. Downloaded this modified version of FixedSYS下载了 FixedSYS 的这个修改版本
  2. Moved to /usr/share/fonts/truetype移至 /usr/share/fonts/truetype
  3. Injected: (set-face-attribute 'default nil :font "Fixedsys Excelsior 3.01-L-12") into my .emacs file注入: (set-face-attribute 'default nil :font "Fixedsys Excelsior 3.01-L-12")到我的 .emacs 文件中

Just to let you know, your links to Fixedsys.TTF font are pointing to a video site with questionable credentials.只是想让您知道,您指向 Fixedsys.TTF 字体的链接指向了一个凭据可疑的视频网站。

  • Chris克里斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM