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 13:51:17 -0700 (PDT) [thread overview]
Message-ID: <f7d72323-876b-4458-941a-284ada6fb508@default> (raw)
In-Reply-To: <87ppj9d2d7.fsf@bach.histomat.net>
> >> 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?
>
> Yes, but only temporarily. If I repeat, next time the scratch is back to
> default mono.
You mean next time you start Emacs? Yes, of course it is, since that
menu item affects only the current session.
But the question was whether the font you see is in fact bitstream
Courier 10 pitch. IOW, did it work?
> >> 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.
>
> ? I thought to specify an init file you had to use the syntax:
> emacs -q -l <initfile>.
emacs -q does not load any init file. The warning is telling
you that you cannot save changes to your init file. That's all.
> But as I demonstrated above, I get this warning when I am using an init
> file (emacs -q -l .emacs-test).
That's not using an init file. That's just starting without an
init file and then loading a file - any file you specify. That
file is not considered your init file by Emacs. As far as Emacs
is concerned, it knows init file to write customizations to.
> > M-: (face-font 'default)
>
> This shows the courier bitstream font. "-bitstream-Courier 10
> Pitch-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1" (line break only
> here). I can't Save Options until after I've resaved the test file
> itself.
Which seems to be the same as the font you tried before, except it
is 15 instead of 16. (I assume that you left a space between10 and
pitch.)
> > 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.
Did you try it, i.e., 15 instead of 16? If not, try it. Maybe
that is the only problem.
> > IOW, this is a font name that works - perhaps
> > the name you were trying before is not correct.
>
> In .emacs-test I write the two lines:
>
> (set-face-attribute
> '(default ((t (:family "Courier 10 Pitch" :foundry "bitstream" :slant
> normal :weight normal :height 113 :width normal))))) [line break only in
> this message]
Just try it the same way you tried before, but using 15 instead of 16.
You don't seem to be paying much attention to the functions you are
using. See the doc of `set-face-attribute'. Just do what you did
previously.
> The produces an error. A lot of hex/? garbage (204V^@...), but including
> "[args frame foundary family spec where purecopy 0 nil (0t) ..)"
See above - you did not use `set-face-attribute' correctly.
next prev parent reply other threads:[~2014-05-19 20:51 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
[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 [this message]
[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=f7d72323-876b-4458-941a-284ada6fb508@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).