unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vince Salvino <salvino@coderedcorp.com>
To: 51405@debbugs.gnu.org
Subject: bug#51405: Set default font on Windows to Consolas-11
Date: Tue, 26 Oct 2021 06:28:16 +0000	[thread overview]
Message-ID: <CH2PR12MB423139C751573114080B5B6CA5849@CH2PR12MB4231.namprd12.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

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


[-- Attachment #2: 0001-Set-default-font-on-Windows-to-Consolas-11.patch --]
[-- Type: application/octet-stream, Size: 769 bytes --]

From 58ec236a72b883455e5112d1aafdafff6ab8f32f Mon Sep 17 00:00:00 2001
From: Vince Salvino <salvino@coderedcorp.com>
Date: Tue, 26 Oct 2021 02:11:06 -0400
Subject: [PATCH] Set default font on Windows to Consolas-11

---
 src/w32fns.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/w32fns.c b/src/w32fns.c
index 14d1154a2b..141a9ed0a9 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5670,7 +5670,8 @@ w32_default_font_parameter (struct frame *f, Lisp_Object parms)
     {
       int i;
       static const char *names[]
-	= { "Courier New-10",
+	= { "Consolas-11",
+	    "Courier New-10",
 	    "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1",
 	    "-*-Fixedsys-normal-r-*-*-12-*-*-*-c-*-iso8859-1",
 	    "Fixedsys",
-- 
2.33.0.windows.2


             reply	other threads:[~2021-10-26  6:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-26  6:28 Vince Salvino [this message]
2021-10-26 12:53 ` bug#51405: Set default font on Windows to Consolas-11 Eli Zaretskii
2021-10-26 14:08   ` Howard Melman
2021-10-26 14:31     ` Howard Melman
2021-10-26 16:03       ` Eli Zaretskii
2022-09-14 18:32         ` Lars Ingebrigtsen
2021-10-26 16:02     ` Eli Zaretskii
2021-10-26 16:21   ` Vince Salvino

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=CH2PR12MB423139C751573114080B5B6CA5849@CH2PR12MB4231.namprd12.prod.outlook.com \
    --to=salvino@coderedcorp.com \
    --cc=51405@debbugs.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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