[macemacsjp-english 856] font size in Carbon Emacs Re: Help Emacs

Back to archive index

Roussanka Loukanova rlouk****@stp*****
Tue Jan 23 23:41:37 JST 2007


Hi,

On Mon, 22 Jan 2007, Seiji Zenitani wrote:

>>
>> 1. If I select larger font in an open buffer, e.g. with Shift-Click
>> and
>> select Courier 18, then I can not get this saved for future Emacs
>> sessions with Options -> SaveOptions; and I do not know how to get
>> this
>> with Customize Emacs.
>
> Please read [macemacsjp-english 764].

I tried several options, only the last from the described ones below works 
satisfactory (may be in the first two I do not do something properly):

A. I read that email and
/Applications/Emacs.app/Contents/Resources/site-lisp/mac/carbon-font.el

The descriptions are not clear in which file to put the suggested lines:

I tried putting the line
(fixed-width-set-default-fontset "-*-*-medium-r-normal--14-*-*-*-*-*-
fontset-hiraginokaku")

- in .emacs
Emacs complains for errors upon start-up

- in 
/Applications/Emacs.app/Contents/Resources/site-lisp/mac/carbon-font.el

Emacs starts up with no complains, but there is no effect on the font in 
the buffers.

B. From Emacs' menu bar (after having a buffer with some file):

Options -> Show/Hide -> Font Panel

brings up Mac's Font Panel: I select desired font size, e.g.
Monaco -> Regular -> 14

This makes the font in the buffer to that size. Then, I select
Options -> Save Options

But this has no effect on the next new emacs sessions.

C. This option  is described by Jean-Christophe Helary
Date: Thu, 4 Jan 2007 15:05:58 +0900
From: Jean-Christophe Helary...
To: Emacs on Mac OS X <macos****@email*****>
Subject: Re: [OS X Emacs] changing default fonts on aquamacs 0.9.9d

from emacs' menu
Options -> Customize Options -> Specific Face...

type in the minibuffer "default":

Customize face (default font-lock-comment-face): default RET

under Default face: ...

I replaced only 120 with 140:

....
Choice: Value Menu
  Attributes: [X] Font Family: apple-monaco
              [X] Width: Value Menu medium
              [X] Height: Value Menu Height in 1/10 pt: 140
...

Then selecting Save for Future Sessions, does so. In .emacs, I get the 
following statement, which apparently, if put in there "by hand," without 
the above steps via emacs' menu, should do the job:

(custom-set-faces
   ;; custom-set-faces was added by Custom.
   ;; If you edit it by hand, you could mess it up, so be careful.
   ;; Your init file should contain only one such instance.
   ;; If there is more than one, they won't work right.
  '(default ((t (:stipple nil :background "white" :foreground "black" 
:inverse-video nil :box nil :strike-through nil :overline nil :underline 
nil :slant normal :weight normal :height 140 :width normal :family 
"apple-monaco")))))




More information about the macemacsjp-english mailing list
Back to archive index