unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Modifying face-font-family-alternatives has no effect
@ 2012-04-10  1:30 taz
  2012-04-16 15:37 ` Jason Rumney
  0 siblings, 1 reply; 2+ messages in thread
From: taz @ 2012-04-10  1:30 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using emacs23.4 on windows 7.

Here's an example configuration:

(setq face-font-family-alternatives '(("myfamily" "anonymous pro")))
(set-face-attribute 'default nil :family "myfamily")

I expect this should cause the default font to be set to "anonymous pro", but it seems to ignore whatever I set for face-font-family-alternative and behaves according to its default value instead (I always get courier or arial). Although setting family to "anonymous pro" directly does work. How can I get the expected behavior?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Modifying face-font-family-alternatives has no effect
  2012-04-10  1:30 Modifying face-font-family-alternatives has no effect taz
@ 2012-04-16 15:37 ` Jason Rumney
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Rumney @ 2012-04-16 15:37 UTC (permalink / raw)
  To: help-gnu-emacs

On Tuesday, 10 April 2012 09:30:13 UTC+8, taz  wrote:

> (setq face-font-family-alternatives '(("myfamily" "anonymous pro")))

Looking at the definition of face-font-family-alternatives, it seems setting it with setq will not have any effect. Either set it through customize, or add

(internal-set-alternative-font-family-alist face-font-family-alternatives)

after setting it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-16 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10  1:30 Modifying face-font-family-alternatives has no effect taz
2012-04-16 15:37 ` Jason Rumney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).