8

How to I disable anti-aliasing for fonts in the Windows version of Emacs 23?

Thanks.

Vince
  • 3,325
  • 2
  • 23
  • 41

4 Answers4

10

You can specify the antialias=none option for your fonts, as stated in GNU Emacs Manual

Carmine Paolino
  • 2,749
  • 20
  • 21
  • 10
    More explicitly, you hit `M-x customize` and then choose `Faces` and again `Basic Faces`. There you will find the default face where you can turn off the anti-aliasing. – Pinochle Aug 14 '09 at 20:17
7

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:

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.

Community
  • 1
  • 1
nondeterministic
  • 501
  • 5
  • 17
  • -1 because it doesn't answer the question as asked here (please open a new question that you answer yourself), and the link is useless since it's not a permalink to a specific item. – fluffy Oct 01 '12 at 18:01
5

If others were searching for how to disable anti-aliasing in OS X, you can run

defaults write org.gnu.Emacs AppleAntiAliasingThreshold 999
Lri
  • 26,768
  • 8
  • 84
  • 82
  • 1
    Works for me as of 2018 in Mojave – rat Oct 03 '18 at 15:43
  • This worked for me for default font, but bold fonts were still antialiased until added this to .emacs: ```(setq-default mac-allow-anti-aliasing nil)``` – kcraigie May 24 '19 at 18:05
0

Never have run Mac OS X, so usable only for 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:

(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...

gavenkoa
  • 45,285
  • 19
  • 251
  • 303