help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify font for emacs on MacOSX?


From: Gregory J. Grubbs
Subject: Re: How to specify font for emacs on MacOSX?
Date: Fri, 13 Nov 2009 06:56:47 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

hap 497 <address@hidden> writes:

> Hi,
>
> How to specify font for emacs on MacOSX?
> I am using emacs , not aquamacs. How can I switch to use a different
> font in my .emacs file?
>
> Thank you.

To get the standard OS X font selection, you can use M-x menu-set-font

I have the following in my init file, set to use Inconsolata font on
wherever I can:

--8<---------------cut here---------------start------------->8---
(cond ((or (eq window-system 'mac) (eq window-system 'ns))
      (set-face-font 'default 
'"-apple-inconsolata-medium-r-normal--16-0-72-72-m-0-iso10646-1"))
      ((and (eq window-system 'x) (eq emacs-major-version 23))
       (set-face-font 'default 
'"-unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1")
       (add-to-list 'default-frame-alist '(font . 
"-unknown-Inconsolata-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1"))
       )
      ((eq window-system 'x)
       (set-face-font 'default '"10x20")))
--8<---------------cut here---------------end--------------->8---





reply via email to

[Prev in Thread] Current Thread [Next in Thread]