From: Drew Adams <drew.adams@oracle.com>
To: Haines Brown <haines@histomat.net>, help-gnu-emacs@gnu.org
Subject: RE: setting default font name
Date: Mon, 19 May 2014 08:45:07 -0700 (PDT) [thread overview]
Message-ID: <cda47ca9-1a0b-4855-a108-0c3b021b611a@default> (raw)
In-Reply-To: <87tx8ldd20.fsf@bach.histomat.net>
> > Do you have that bitstream font installed?
>
> Good question. I assumed I did because in emacs menu, I can go to
> Options, Set Default font, and choose the bitstream font for a
> document. That document keeps that font when reopened.
So you see Emacs change to use that font, as you wanted. It does
not change to some other font. Right?
> > What do you see in buffer *Messages* about this - anything?
>
> No.
>
> > What happens if you use `emacs -Q' and you evaluate the sexp
> > in *scratch*, instead of putting it in an otherwise empty init
> > file?
>
> It returns "nil" on next line. I'm not familiar with lisp evaluation and
> so don't know what the nil means. No errors?
nil is the value returned by evaluating the expression - unimportant
in this case. The question is whether your default font actualy changed.
To test that, do `C-x 5 2' to open a new frame showing the same buffer.
If the default font was changed to what you want then that frame should
show the new font.
> If I open emacs -Q the font used for the scratch buffer header is Deju
> Sans. I can go to Options, Set Default Font, and change the header to
> bitstream Courier 10 pitch.
And does that change visibly to the font you want?
> If I then click "Save Options", I get the
> warning: "Saving options from 'emacs -q' would overwrite existing
> configutations". I don't understand.
When you use `emacs -q' you are not using your init file, which is
where Emacs would normally save any changes. Ignore this warning,
and do not try to save such changes if you started without your
init file.
If the tests you mention above actually show a change to the font
you want, then, in a window that shows that font is used, do this:
M-: (face-font 'default)
That will show you the string that is the font name for face
`default', which is the same thing as the default font name.
If this string is not the same as the string you were trying earlier,
try this one instead. IOW, this is a font name that works - perhaps
the name you were trying before is not correct.
If this does not help, perhaps someone else can help.
next prev parent reply other threads:[~2014-05-19 15:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-18 11:36 setting default font name Haines Brown
2014-05-18 13:35 ` Drew Adams
[not found] ` <mailman.1565.1400420140.1147.help-gnu-emacs@gnu.org>
2014-05-18 21:11 ` Haines Brown
2014-05-18 21:57 ` Michael Heerdegen
2014-05-18 22:03 ` Drew Adams
[not found] ` <mailman.1582.1400450623.1147.help-gnu-emacs@gnu.org>
2014-05-19 11:09 ` Haines Brown
2014-05-19 13:47 ` Drew Adams
[not found] ` <mailman.1604.1400507269.1147.help-gnu-emacs@gnu.org>
2014-05-19 15:05 ` Haines Brown
2014-05-19 15:45 ` Drew Adams [this message]
[not found] ` <mailman.1615.1400514331.1147.help-gnu-emacs@gnu.org>
2014-05-19 18:56 ` Haines Brown
2014-05-19 20:51 ` Drew Adams
[not found] ` <mailman.1639.1400532700.1147.help-gnu-emacs@gnu.org>
2014-05-20 10:14 ` Jacob Gerlach
2014-05-20 10:58 ` Haines Brown
2014-05-19 19:30 ` Hans BKK
2014-05-20 13:32 ` Hans BKK
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cda47ca9-1a0b-4855-a108-0c3b021b611a@default \
--to=drew.adams@oracle.com \
--cc=haines@histomat.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).