简体   繁体   English

Emacs字体具有抗锯齿和提示功能

[英]Emacs font with antialiasing and hinting

I'm using Fedora 17 and Emacs 24 and wanted to try liberation fonts on Emacs. 我正在使用Fedora 17和Emacs 24,并希望在Emacs上尝试解放字体。 I've tried this with HOME/.Xresources : 我用HOME/.Xresources尝试过这个:

Xft.antialias:  1
Xft.dpi:    96
Xft.hinting:    1
Xft.hintstyle:  hintslight
Xft.lcdfilter:  lcddefault
Xft.rgba:   rgb
Emacs.font: Liberation Mono-12

That changes only normal text, but not other text such as ORG-MODE headings. 这只会更改普通文本,但不会更改其他文本,例如ORG-MODE标题。 I don't know if antialiasing is working either. 我不知道抗锯齿是否有效。

I've also tried: 我也尝试过:

(set-fontset-font
nil '(#x0250 . #x02af) (font-spec :family "Liberation Mono"))

but it's still the same. 但它仍然是一样的。

检查以确保将org-mode面设置为从default面正确继承。

I put the following bit of code in my .emacs.d to change the default font: 我在.emacs.d添加了以下代码来更改默认字体:

(set-face-attribute 'default nil :family "Ubuntu Mono" :height 120 :weight 'normal)

Whether the font is being anti-aliased and hinted is dependent on the program drawing the emacs window. 字体是否消除锯齿和提示取决于绘制emacs窗口的程序。 So if you're running the X Windows version of Emacs inside Gnome or KDE, then Gnome/KDE will draw the fonts as hinted and anti-aliased. 因此,如果您在Gnome或KDE中运行X Windows版本的Emacs,那么Gnome / KDE会将字体绘制为暗示和消除锯齿。 If you're running emacs inside a terminal, then you need to research how to use anti-aliased and hinted fonts inside the terminal (which if you're using a terminal emulator inside of a window manager is still tied to the abilities of the window manager itself). 如果你在终端内运行emacs,那么你需要研究如何在终端内部使用消除锯齿和暗示字体(如果你在窗口管理器中使用终端模拟器仍然依赖于窗口管理器本身)。

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

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