【问题标题】:Emacs 23.3 lost all fontsEmacs 23.3 丢失所有字体
【发布时间】:2012-02-03 12:17:26
【问题描述】:

我已将 Emacs 从 23.1 更新到 23.3,但它突然找不到我的字体(例如 Liberation Mono)。当我尝试 Options->Set Default Font... 时,系统提示我选择了一些使用“AxB”格式称为“AxB”格式的非常奇怪的东西,其中 A 和 B 是数字,有些具有可远程识别的名称(如 lucildatypewriter -虽然我没有以该名称安装任何字体,既没有“Lucilda Typewriter”也没有任何类似的字体),“Lucilda”系列还有一些“亲戚” - 例如:“lucildatypewriter-bold-14”,但选择重量/尺寸是任意的。它还有一个完全专用于 Courier 字体的菜单和一个小菜单,上面写着“字体集”并包含两个项目:“标准 17 点中号”和“启动 16 点中号”,显然都没有命名任何字体.

它选择的显示代码的字体是某种衬线字体,看起来非常糟糕......

当我尝试自定义默认面 M-x customize-face RET default 时,它说它正在使用 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 -q 启动emacs时字体也消失了吗?

标签: emacs emacs23


【解决方案1】:

当我使用配置了不支持 GTK 的 Emacs 版本时,这发生在我身上。重新编译配置了 GTK 的 Emacs 让我再次看到所有预期的字体。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-08-10
    • 2011-07-21
    • 1970-01-01
    • 1970-01-01
    • 2014-04-02
    • 2012-02-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多