GNU bug report logs - #51405
Set default font on Windows to Consolas-11

Previous Next

Package: emacs;

Reported by: Vince Salvino <salvino <at> coderedcorp.com>

Date: Tue, 26 Oct 2021 06:58:02 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51405 in the body.
You can then email your comments to 51405 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 06:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vince Salvino <salvino <at> coderedcorp.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 26 Oct 2021 06:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vince Salvino <salvino <at> coderedcorp.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 06:28:16 +0000
[Message part 1 (text/plain, inline)]
Courier New generally looks terrible on modern screens, as it has been neglected for decades since its original digitization for use with 640x480 CRT screens in the early 90s. Many of the character glyphs are only 1 pixel wide and look like hairlines on an LCD screen.

To address this, Windows Vista and later ship with Consolas, the default monospaced font used in Notepad, CMD (terminal), and other built-in programs. It is also used by default in nearly every other text/code editor, web browser, and terminal program when requesting a monospace font. Personally speaking, it is magnitudes more legible and easier to read. Consolas looks similar to DejaVu Mono, which is generally the default in GNU systems. 

This patch changes the default font in MS-Windows to Consolas-11. It will still fall back to the previous default (Courier New-10) on older systems where the font is not available. I want to be clear that this is not a change for the sake of choosing a fashionable font... Consolas has been the default monospace font in Windows for 15 years!


Vince Salvino

[0001-Set-default-font-on-Windows-to-Consolas-11.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 12:54:02 GMT) Full text and rfc822 format available.

Message #8 received at 51405 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vince Salvino <salvino <at> coderedcorp.com>
Cc: 51405 <at> debbugs.gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 15:53:24 +0300
> From: Vince Salvino <salvino <at> coderedcorp.com>
> Date: Tue, 26 Oct 2021 06:28:16 +0000
> 
> Courier New generally looks terrible on modern screens, as it has been neglected for decades since its original digitization for use with 640x480 CRT screens in the early 90s. Many of the character glyphs are only 1 pixel wide and look like hairlines on an LCD screen.
> 
> To address this, Windows Vista and later ship with Consolas, the default monospaced font used in Notepad, CMD (terminal), and other built-in programs. It is also used by default in nearly every other text/code editor, web browser, and terminal program when requesting a monospace font. Personally speaking, it is magnitudes more legible and easier to read. Consolas looks similar to DejaVu Mono, which is generally the default in GNU systems. 
> 
> This patch changes the default font in MS-Windows to Consolas-11. It will still fall back to the previous default (Courier New-10) on older systems where the font is not available. I want to be clear that this is not a change for the sake of choosing a fashionable font... Consolas has been the default monospace font in Windows for 15 years!

I'm sorry, but this is a non-starter.  Selecting a default font on
Windows that will work reasonably well on all the supported Windows
versions (i.e. Windows 9X to Windows 11) is a delicate and tricky
business.  Courier New, with all its deficiencies, is not a bad font
(I use it on many Windows system, up to and including Windows 10, and
cannot agree that it "looks terrible"), and it satisfies the
non-trivial requirements we have: support for many scripts and
availability on all the Windows versions.  (AFAICT, Consolas still
supports fewer Unicode blocks that Courier new, even on Windows 10.)
Moreover, replacing the default font will inevitably open a Pandora
box of the need to change the settings of some other faces we use in
Emacs (like fixed-pitch and variable-pitch, for example), which need
to be compatible with (i.e. reasonably similar to) the default font,
in order to avoid ugly displays where we mix these two (for example,
in Info buffers).

People who don't like the default font can easily customize their
Emacs to use Consolas (or any other font).  We have several ways of
doing that:

  . Invoke Emacs with "emacs -fn Consolas-11"
  . Put (set-face-font 'default "Consolas-11") in your init file
  . Put "Emacs.font" with the value "Consolas-11" in the Registry,
    under the HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs key

(The latter method emulates the X resources on Posix platforms.)

So, given that it is so easy to customize the default font, and OTOH
given the non-trivial issues that will be caused by changing the
default, I think we should not change the default, not in the
observable future.

In any case, a proposal to change the default font must be accompanied
by suitable changes to the basic faces that request different font
families, and we must also carefully consider the coverage of the
candidate font vs that of Courier new, because any Unicode block
covered by Courier New but not the contender would mean potential
display problems due to font size/pitch mismatches, which usually
results in user complaints.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 14:09:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 10:08:06 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

> AFAICT, Consolas still supports fewer Unicode blocks that
> Courier new, even on Windows 10.

I don't use either so I'm not proposing one or the other but
I was curious about this.  According to wikipedia:

https://en.wikipedia.org/wiki/Consolas

Although Consolas is designed as a replacement for Courier
New, only 713 glyphs were initially available, as compared
to Courier New (2.90)'s 1318 glyphs. In version 5.22
(included with Windows 7), support for Greek Extended,
Combining Diacritical Marks For Symbols, Number Forms,
Arrows, Box Drawing, and Geometric Shapes was added. In
version 5.32 the total number of supported glyphs was
2735. In version 7.00 (as part of Windows 10 1909) there are
3030 glyphs in total.

https://en.wikipedia.org/wiki/Courier_(typeface)#Courier_New

Versions from 2.76 onward include Hebrew and Arabic glyphs,
with most of the Arabic characters added on non-italic
fonts. The styling of Arabic glyphs is similar to those
found in Times New Roman but adjusted for monospace. The
Courier New version 5.00 includes over 3100 glyphs, covering
over 2700 characters per font.

Is there some place that actually lists the unicode block
support for each font?

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 14:32:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Howard Melman <hmelman <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 10:31:05 -0400
Howard Melman <hmelman <at> gmail.com> writes:

>> AFAICT, Consolas still supports fewer Unicode blocks that
>> Courier new, even on Windows 10.

> Is there some place that actually lists the unicode block
> support for each font?

Based on:
https://docs.microsoft.com/en-us/typography/font-list/consolas
https://docs.microsoft.com/en-us/typography/font-list/courier-new

It seems the difference is that Courier New supports Hebrew
and Arabic while Consolas does not.

-- 

Howard





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 16:04:02 GMT) Full text and rfc822 format available.

Message #17 received at 51405 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 51405 <at> debbugs.gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 19:02:57 +0300
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Tue, 26 Oct 2021 10:08:06 -0400
> 
> Is there some place that actually lists the unicode block
> support for each font?

You already found the official site, but I would also like to point
out that the wonderful BabelMap program will show this information for
each font installed on the system.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 16:05:01 GMT) Full text and rfc822 format available.

Message #20 received at 51405 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 51405 <at> debbugs.gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 19:03:56 +0300
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Tue, 26 Oct 2021 10:31:05 -0400
> 
> Based on:
> https://docs.microsoft.com/en-us/typography/font-list/consolas
> https://docs.microsoft.com/en-us/typography/font-list/courier-new
> 
> It seems the difference is that Courier New supports Hebrew
> and Arabic while Consolas does not.

Right.  Which I think is a significant disadvantage for the users who
need these scripts.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Tue, 26 Oct 2021 17:06:03 GMT) Full text and rfc822 format available.

Message #23 received at 51405 <at> debbugs.gnu.org (full text, mbox):

From: Vince Salvino <salvino <at> coderedcorp.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "51405 <at> debbugs.gnu.org" <51405 <at> debbugs.gnu.org>
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 16:21:21 +0000
I had expected this response, but figured it was worth a try.

I did test the tutorial, customize menus, and various info pages, and they all seemed to look fine, including in mixed-font scenarios as you mentioned. 

I know Consolas has much higher glyph coverage than Courier new (about 3x as much if I am correct), however I will do some empirical testing on different languages and scripts to observe the behavior. I have a huge set of translations from another project I can test on. 

I remember a heavily debated thread some time ago about making the emacs experience a bit "better" out of the box. I realize that is a loaded statement (or a fool's errand), but I do think many MS Windows users would find this to be a welcome change, if we can find a way to make it work properly. Or perhaps customizing the font is a right of passage :)


Vince Salvino



	  Original Message  	


From: eliz <at> gnu.org
Sent: October 26, 2021 8:53 AM
To: salvino <at> coderedcorp.com
Cc: 51405 <at> debbugs.gnu.org
Subject: Re: bug#51405: Set default font on Windows to Consolas-11


> From: Vince Salvino <salvino <at> coderedcorp.com>
> Date: Tue, 26 Oct 2021 06:28:16 +0000
>
> Courier New generally looks terrible on modern screens, as it has been neglected for decades since its original digitization for use with 640x480 CRT screens in the early 90s. Many of the character glyphs are only 1 pixel wide and look like hairlines on an LCD screen.
>
> To address this, Windows Vista and later ship with Consolas, the default monospaced font used in Notepad, CMD (terminal), and other built-in programs. It is also used by default in nearly every other text/code editor, web browser, and terminal program when requesting a monospace font. Personally speaking, it is magnitudes more legible and easier to read. Consolas looks similar to DejaVu Mono, which is generally the default in GNU systems.
>
> This patch changes the default font in MS-Windows to Consolas-11. It will still fall back to the previous default (Courier New-10) on older systems where the font is not available. I want to be clear that this is not a change for the sake of choosing a fashionable font... Consolas has been the default monospace font in Windows for 15 years!

I'm sorry, but this is a non-starter.  Selecting a default font on
Windows that will work reasonably well on all the supported Windows
versions (i.e. Windows 9X to Windows 11) is a delicate and tricky
business.  Courier New, with all its deficiencies, is not a bad font
(I use it on many Windows system, up to and including Windows 10, and
cannot agree that it "looks terrible"), and it satisfies the
non-trivial requirements we have: support for many scripts and
availability on all the Windows versions.  (AFAICT, Consolas still
supports fewer Unicode blocks that Courier new, even on Windows 10.)
Moreover, replacing the default font will inevitably open a Pandora
box of the need to change the settings of some other faces we use in
Emacs (like fixed-pitch and variable-pitch, for example), which need
to be compatible with (i.e. reasonably similar to) the default font,
in order to avoid ugly displays where we mix these two (for example,
in Info buffers).

People who don't like the default font can easily customize their
Emacs to use Consolas (or any other font).  We have several ways of
doing that:

  . Invoke Emacs with "emacs -fn Consolas-11"
  . Put (set-face-font 'default "Consolas-11") in your init file
  . Put "Emacs.font" with the value "Consolas-11" in the Registry,
    under the HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs key

(The latter method emulates the X resources on Posix platforms.)

So, given that it is so easy to customize the default font, and OTOH
given the non-trivial issues that will be caused by changing the
default, I think we should not change the default, not in the
observable future.

In any case, a proposal to change the default font must be accompanied
by suitable changes to the basic faces that request different font
families, and we must also carefully consider the coverage of the
candidate font vs that of Courier new, because any Unicode block
covered by Courier New but not the contender would mean potential
display problems due to font size/pitch mismatches, which usually
results in user complaints.

Thanks.

Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 26 Oct 2021 22:40:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51405; Package emacs. (Wed, 14 Sep 2022 18:33:02 GMT) Full text and rfc822 format available.

Message #28 received at 51405 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51405 <at> debbugs.gnu.org, Howard Melman <hmelman <at> gmail.com>
Subject: Re: bug#51405: Set default font on Windows to Consolas-11
Date: Wed, 14 Sep 2022 20:32:45 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Right.  Which I think is a significant disadvantage for the users who
> need these scripts.

If I understand correctly, the conclusion here is that we don't want to
change the defaults in Windows, so I'm closing this bug report.




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Sep 2022 18:34:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 51405 <at> debbugs.gnu.org and Vince Salvino <salvino <at> coderedcorp.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Sep 2022 18:34:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Oct 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.