unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Default font / size
@ 2017-06-20 21:50 John Mastro
  2017-06-20 22:03 ` John Mastro
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: John Mastro @ 2017-06-20 21:50 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

The default font in "emacs -Q" in "Courier New-10.0". I'd like to change
that to "Consolas-10.0" via Lisp code, but without explicitly specifying
the font size of "10.0"[1].

Is there any way to do that? My first thought was to try

(add-to-list 'default-frame-alist '(font . "Consolas"))

but that results in "Consolas-12".

[1]: My goal is to avoid having to specify a different font size for
     each of the systems on which I use Emacs, since Emacs presumably
     has logic to pick a reasonable font size.

Thanks

        John



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

end of thread, other threads:[~2017-06-21 20:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-20 21:50 Default font / size John Mastro
2017-06-20 22:03 ` John Mastro
2017-06-20 23:30 ` Mekeor Melire
2017-06-21  9:31 ` Emanuel Berg
2017-06-21 17:47 ` Eli Zaretskii
2017-06-21 19:15   ` John Mastro
2017-06-21 19:30     ` Eli Zaretskii
2017-06-21 20:29       ` John Mastro

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).