From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs master: different (ugly) font in org-mode [Windows, macOS] Date: Tue, 05 Oct 2021 18:46:41 +0300 Message-ID: <83a6jn4gpq.fsf@gnu.org> References: <1758826875.387473.1633124447794@mail1.libero.it> <87a6jsqbhq.fsf@protesilaos.com> <1048176278.452440.1633374684696@mail1.libero.it> <87sfxgr320.fsf@protesilaos.com> <83sfxf4rs2.fsf@gnu.org> <1638550012.538.1633441275953@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: info@protesilaos.com, emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 17:53:18 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXmko-0005Dh-My for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 17:53:18 +0200 Original-Received: from localhost ([::1]:44486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXmkn-0006qg-CC for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 11:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXmeY-0006vU-NT for emacs-devel@gnu.org; Tue, 05 Oct 2021 11:46:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44070) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXmeX-0002O5-S7; Tue, 05 Oct 2021 11:46:49 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1146 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXmeX-0001xa-Et; Tue, 05 Oct 2021 11:46:49 -0400 In-Reply-To: <1638550012.538.1633441275953@mail1.libero.it> (message from Angelo Graziosi on Tue, 5 Oct 2021 15:41:15 +0200 (CEST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276343 Archived-At: > Date: Tue, 5 Oct 2021 15:41:15 +0200 (CEST) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org > > > > >> > I use JetBrains Mono font in Emacs and in today build from master, the > > > > >> Please try using something like this: > > > >> > > > >> (set-face-attribute 'fixed-pitch nil > > > >> :family (face-attribute 'default :family) > > > >> :height (face-attribute 'default :height)) > > > >> > > > I'd like to understand the problem better before we consider solutions > > in this area. What's the problem with "Monospace" on MS-Windows? > > which font does that actually use? ("C-u C-x =" on the text in > > question should report the font Emacs uses to display that text.) > > When I do not use the above Protesilaos suggestions in the init, "C-u C-x =" on "begin_quote", for example, prints: > > position: 1613 of 4924 (33%), column: 5 > character: i (displayed as i) (codepoint 105, #o151, #x69) > charset: ascii (ASCII (ISO646 IRV)) > code point in charset: 0x69 > script: latin > syntax: w which means: word > category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin, r:Roman > to input: type "C-x 8 RET 69" or "C-x 8 RET LATIN SMALL LETTER I" > buffer code: #x69 > file code: #x69 (encoded by coding system utf-8-unix) > display: by this font (glyph code): > gdi:-raster-Courier-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1 (#x69) But if JetBrains is the font of the default face, then having Courier for a non-default face is expected, and even desired. So I'm not sure I understand your complaint. Did you expect the fixed-pitch face to have the same font as the default face? If so, it's a wrong expectation: we deliberately defined the fixed-pitch face to have a different typeface, so that it stands out. > i.e., it uses Courier NOT JetBrains. On macOS something similar occurs: it uses Courier non Monaco. Instead on GNU/Linux (default font Monospace regular 11): > > [...] > display: by this font (glyph code): > ftcrhb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x4C) > [...] And the default font on GNU/Linux is also DejaVu Sans Mono?