[OS X Emacs] Setting default font in .emacs for Aquamacs 1.4

Patrick May pjm at spe.com
Sun Jun 29 09:49:07 EDT 2008

On 28 Jun 2008, at 18:00, Hampus Edvardsson wrote:
> Hi all,
> I have a question about setting the default font for Aquamacs 1.4.
> From within Aquamacs, I can succesfully set the font via M-X set- 
> default-font, and select the font I want: "-apple-monaco-medium-r- 
> normal--10-120-72-72-m-120-mac-roman". The font is set correctly.  
> Running M-X describe-font informs me that the font is indeed the one  
> I want:
> name (opened by): -apple-monaco-medium-r-normal--10-120-72-72-m-120- 
> mac-roman
>      full name: -apple-monaco-medium-r-normal--10-100-72-72-m-100- 
> mac-roman
>           size:  6
>         height: 13
> baseline-offset:  0
> relative-compose:  0
> But of course, setting the font this was means it has be be reset  
> for each session, and also when new frames are opened, annyingly.
> Instead, I want ot add this setting to my .emacs file, so I've added  
> the following line to it:
> (set-default-font "-apple-monaco-medium-r-normal--10-120-72-72-m-120- 
> mac-roman")
> But this does nothing. Running M-X descibe-font tells me that the  
> font is:
> name (opened by): -apple-monaco-medium-r-normal--12-120-72-72-m-120- 
> mac-roman
>      full name: -apple-monaco-medium-r-normal--12-120-72-72-m-120- 
> mac-roman
>           size:  7
>         height: 15
> baseline-offset:  0
> relative-compose:  0
> No suspicious errors are reported to the *Messages* buffer when  
> the .emacs file is executed. Any ideas of what I am doing wrong?

	I can't answer your question directly, but I have an additional data  
point.  I put the following into my .emacs:

  "-apple-bitstream vera sans mono-medium-r-normal--14-140-72-72-m-140- 

This is the third line, after setting my initial and default frame  
width and height.  It works.

	Is it possible that you're setting the default font and then stomping  
on it with another package?



pjm at spe.com
S P Engineering, Inc.
Large scale, mission-critical, distributed OO systems design and  
(C++, Java, Common Lisp, Jini, middleware, SOA)

More information about the MacOSX-Emacs mailing list