简体   繁体   English

为emacs 24.x安装字体

[英]Install font for emacs 24.x

I've installed emacs 24.3, and I would like to use a specific font (Meslo LG M DZ), but when I launch emacs, I have the message "Font `Meslo LG M DZ' is not defined". 我已经安装了emacs 24.3,并且想要使用特定的字体(Meslo LG M DZ),但是当我启动emacs时,出现消息“字体'Meslo LG M DZ'未定义”。 What is strange, is that when I downgrade emacs version from 24 to 23, using the same configuration file, I can use this font without any problem... 奇怪的是,当我使用相同的配置文件将emacs版本从24降级到23时,我可以毫无问题地使用此字体...

Here is how I declare Meslo in the configuration file : 这是我在配置文件中声明Meslo的方法:

(setq default-frame-alist
  '(
    (width . 80)
    (tool-bar-lines . 0)
    => (font . "Meslo LG M DZ") <=
    (vertical-scroll-bars . nil)
    ))
(unless (fboundp 'prog-mode) (defalias 'prog-mode 'fundamental-mode))
...

How can I solve this? 我该如何解决?

You could try setting the font manually using the Options->Set default font menu, and then clicking Options->Save Options, which will write the setting automatically to your .emacs file. 您可以尝试使用选项->设置默认字体菜单,然后单击选项->保存选项,手动设置字体,这会将设置自动写入您的.emacs文件。 You could then use that snippet henceforth. 然后,您可以使用该代码段。

这只是编译选项的问题……我没有使用“ --without-xft”,但是我需要明确地放置“ --with-xft”。

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

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