Emacs 23.3 丢失了所有字体
我已将 Emacs 从 23.1 更新到 23.3,但它突然找不到我的字体(例如 Liberation Mono)。当我尝试“选项”->“设置默认字体”...时,系统会提示我选择一个非常奇怪的选项,有些使用“AxB”格式调用,其中 A 和 B 是数字,有些具有远程可识别的名称(例如 lucildatypewriter) - 虽然我没有以该名称安装任何字体,“Lucilda Typewriter”也没有任何类似的字体),“Lucilda”家族还有更多“亲戚” - 例如: “lucildatypewriter-bold-14”,但重量/尺寸的选择是任意的。它还有一个完全专用于 Courier 字体的菜单和一个小菜单,其中显示“字体集”并包含两项:“标准 17 点中等”和“启动 16 点中等”,两者显然都没有命名任何字体。
它选择用于显示代码的字体是一些衬线字体,它看起来非常糟糕...
当我尝试自定义默认外观 Mxcustomize-face RET default
它说它正在使用 times
- 再说一遍,我没有安装times,我的字体是“Times New Roman”。
我也尝试过评估
(set-face-attribute
'default nil
:family "Liberation Mono" :height 100)
,但没有明显的效果。
下面是我的 fonts.conf:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" qual="all">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hintstyle" mode="assign">
<int>0</int>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<fontconfig>
(我不想使用 AA 字体)
fc-list
将打印我想要使用并且在以前版本的 Emacs 中使用的字体。如果重要的话,我正在使用 Ubuntu / GTK。
我需要做什么来解释我的字体安装在 emacs 中?
谢谢!
I've updated Emacs from 23.1 to 23.3 and it suddenly can no longer find my fonts (for example Liberation Mono). When I try to Options->Set Default Font... I'm prompted with a very bizarre choice of things some called using the format of "AxB", where A and B are digits, some have remotely recognizable names (like lucildatypewriter - although I don't have any font installed by that name, neither "Lucilda Typewriter" nor anything remotely similar), the "Lucilda" family has some more "relatives" - for example: "lucildatypewriter-bold-14", but the choice of weight / size is arbitrary. It has one more menu entirely dedicated to Courier font and one small menu, which says "fontsets" and contains two items: "standart 17-dot medium" and "startup 16-dot medium", both, obviously don't name any fonts.
The font it chosen for displaying the code is some serif font, and it looks extremely bad...
When I try to customize the default face M-x customize-face RET default
It says that it is using times
- again, I don't have times installed, the font I have is the "Times New Roman".
I've also tried eval'ing
(set-face-attribute
'default nil
:family "Liberation Mono" :height 100)
but it had no visible effect.
Below is my fonts.conf:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" qual="all">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="hintstyle" mode="assign">
<int>0</int>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<fontconfig>
(I don't want to use AA for fonts)
fc-list
will print the fonts I'd like to use and was using in the previous version of Emacs. I'm using Ubuntu / GTK if that matters.
What would I need to do to explain emacs where my fonts are installed?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我使用没有 GTK 支持的 Emacs 版本时,就发生了这种情况。配置 GTK 重新编译 Emacs 让我能够再次看到所有预期的字体。
This happened to me when using a version of Emacs configured without GTK support. Recompiling Emacs with GTK configured allowed me to again see all the expected fonts.