[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font settings ignored on new frames
From: |
Kenichi Handa |
Subject: |
Re: Font settings ignored on new frames |
Date: |
Fri, 06 Jun 2008 22:07:32 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
In article <address@hidden>, Stefan Monnier <address@hidden> writes:
>>>>> If I start me Emacs as:
>>>>> src/emacs -Q --eval '(custom-set-faces (quote (default ((t (:height 60
>>>>> :width semi-condensed :family "DejaVu Sans Mono"))))))'
[...]
> It doesn't matter how it works: it's the command output by customize.
> The call is typically in the user's .emacs as a result of M-x
> customize-face.
I was almost lost in the labyrinth of codes to set the
default face attributes, but I at least found this prolem:
With Emacs 23 (pre-unicode-merge and the trunk),
(custom-set-faces '(default ((t (:family "courier")))))
instantly change the current frame to use courier, but
(face-attribute 'default :family t)
returns `unspecified'.
On the other hand, with Emacs 22,
(custom-set-faces '(default ((t (:family "courier")))))
doesn't change the current frame, and
(face-attribute 'default :family t)
returns "courier".
Which is the correct behaviour?
---
Kenichi Handa
address@hidden