help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default font / size


From: Eli Zaretskii
Subject: Re: Default font / size
Date: Wed, 21 Jun 2017 20:47:17 +0300

> From: John Mastro <john.b.mastro@gmail.com>
> Date: Tue, 20 Jun 2017 14:50:50 -0700
> 
> 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.

I admit I'm confused about your goals: on the one hand you don't want
to specify the font size, and OTOH you don't like the size Emacs
chooses without your specifying it, is that right?  Or did I miss
something?

If indeed I understood what you wanted, then what alternative
mechanisms for choosing font size did you have in mind which could
fulfill your goals?

Or maybe you are asking why Emacs chooses size 12 for Consolas, but
size 10 for Courier New, and what factors affect that?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]