简体   繁体   English

在Emacs 23中关闭字体的反别名

[英]Turn off anti-alias for font in Emacs 23

How to I disable anti-aliasing for fonts in the Windows version of Emacs 23? 如何在Windows版本的Emacs 23中禁用字体的消除锯齿功能?

Thanks. 谢谢。

您可以为GNU Emacs手册中的说明指定字体的antialias=none选项

As I couldn't find a satisfactory answer to this one for a long time, I thought it wouldn't hurt to add this link to this discussion, as the above does not generally work on Linux: 由于我很长一段时间都找不到满意的答案,我认为将此链接添加到此讨论中并没有什么坏处,因为上述内容通常不适用于Linux:

http://keyboardconnoisseur.blogspot.com/2011/04/turning-off-antialiasing-for-specific.html http://keyboardconnoisseur.blogspot.com/2011/04/turning-off-antialiasing-for-specific.html

The problem is that under Linux, emacs doesn't seem to be doing a lot of font handling at all, and you need to disable the antialiasing elsewhere. 问题是在Linux下,emacs似乎根本没有进行大量的字体处理,你需要在其他地方禁用抗锯齿。

如果其他人正在搜索如何在OS X中禁用抗锯齿,则可以运行

defaults write org.gnu.Emacs AppleAntiAliasingThreshold 999

Never have run Mac OS X, so usable only for Linux + Windows: 从未运行Mac OS X,因此仅适用于Linux + Windows:

(defvar my-preferred-font
  (cond
   ((eq window-system 'x)
    "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1")
   ((eq window-system 'w32)
    "Courier New-10:antialias=none")
   (t nil)))
(when my-preferred-font
  (set-frame-font my-preferred-font)
  (set-fontset-font "fontset-default" 'latin my-preferred-font)
  (set-fontset-font "fontset-default" 'phonetic my-preferred-font)
  (set-fontset-font "fontset-default" 'cyrillic my-preferred-font)
  (set-fontset-font "fontset-default" 'greek my-preferred-font))

Whose uses only ASCII it is enough to follow official suggestion: 谁只使用ASCII就足以遵循官方建议:

(add-to-list 'default-frame-alist '(font . "Courier New-10:antialias=none"))

I work with cyrillic, greek and IPA texts so need to define defaults for fontsets... 我使用西里尔语,希腊语和IPA文本,因此需要为字体集定义默认值...

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

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