From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Emacs master: different (ugly) font in org-mode [Windows, macOS] Date: Tue, 5 Oct 2021 15:41:15 +0200 (CEST) Message-ID: <1638550012.538.1633441275953@mail1.libero.it> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10648"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Protesilaos Stavrou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 15:43:03 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 1mXkil-0002aK-Ic for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 15:43:03 +0200 Original-Received: from localhost ([::1]:57480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXkij-0001w9-Lb for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 09:43:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXkh8-0000Fe-7X for emacs-devel@gnu.org; Tue, 05 Oct 2021 09:41:22 -0400 Original-Received: from smtp-17-i2.italiaonline.it ([213.209.12.17]:56681 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXkh5-00053F-0f for emacs-devel@gnu.org; Tue, 05 Oct 2021 09:41:21 -0400 Original-Received: from oxapps-37-170.iol.local ([10.101.8.216]) by smtp-17.iol.local with ESMTPA id Xkh1mYEy5UpwUXkh1max8N; Tue, 05 Oct 2021 15:41:16 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1633441276; bh=/ywwUToeQwvqFC6wSeTw4tSamVyfqRtd+Ht37AEhnp0=; h=From; b=pkRUSlFyLKNmZsCLOsf13ijDScprwYU2vqx05gQmg1jiQTDWBcDmq8ss/fOK5gpiH vW3LULvjvGfHvFiz7ug8eyITwv6jOhlc+vqcyWmVEk7Abb0sSQiRMOY7XJTej4nBnn nGwvmzIqDmzLBmt3F14Fou+ntyMEEiOLi4Xq8OJ+QAbPd4W464N8JInHX3FHTbLi6o UyV2tYLlN8ia+utEncjSyDGnInb3Emy2skCnZ3MwT6jumSNoQeuBK1oWUYBnz03dGX IZ1T8DWWgMUPQD0Fi/3168WCAjR3iK9vEzL/UvjWv6d1Qg7LqJ5AN0I0x+Qw+DCoEZ CENdZGcUhe1kg== X-CNFS-Analysis: v=2.4 cv=MJylJOVl c=1 sm=1 tr=0 ts=615c55fc cx=a_exe a=SrbWj7XZTKyNiYQ/IdT5bQ==:117 a=oamvNqO_vhwA:10 a=IkcTkHD0fZMA:10 a=0ZarNkb-B1wA:10 a=SPnXuC8wsJNiUVC8_kQA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <83sfxf4rs2.fsf@gnu.org> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.3-Rev35 X-Originating-IP: 87.19.19.48 X-Originating-Client: open-xchange-appsuite x-libjamsun: 8xN2jXKE8CNFyQxJP1EqilAPYIUi7b6F x-libjamv: /1UORqLTAF4= X-CMAE-Envelope: MS4xfBj8okZU7jv1pelgFZl0ebU8uJWHVEc64ONkWkw10sk48bdIvO57Uqr98zgML59VXLoOO4EkF6X/kX11TyxE4cADyfDeffyu+BDY4cH1XfnvEEip5nY9 Zsm0PdiZwBjrBvHPH3Erg+ICguCwUkf4lnLoT67iaN3iN1hlGx2ZCF114Bsp5cjpT/oVppmtxpwg5F5HaBahMN/A4dSYn/yYpaABWKtiiQxPN7/9PFMOLhjA 7JfOJz9sbHT52TaIEAb7kg== Received-SPF: pass client-ip=213.209.12.17; envelope-from=angelo.g0@libero.it; helo=libero.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:276330 Archived-At: > Il 05/10/2021 13:47 Eli Zaretskii ha scritto: > > > > From: Protesilaos Stavrou > > Date: Mon, 04 Oct 2021 22:40:55 +0300 > > > > On 2021-10-04, 21:11 +0200, Angelo Graziosi wrote: > > > > >> Il 02/10/2021 06:47 Protesilaos Stavrou ha scritto: > > >> > > >> > > >> On 2021-10-01, 23:40 +0200, Angelo Graziosi wrote: > > >> > > >> > 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) Character code properties: customize what to show name: LATIN SMALL LETTER I general-category: Ll (Letter, Lowercase) decomposition: (105) ('i') There is an overlay here: From 1608 to 1622 face hl-line priority -50 window nil There are text properties here: face org-block-begin-line font-lock-fontified t font-lock-multiline t fontified t 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) [...] > In general, "Monospace" is supposed to be different from the default > face's font, so "What is the default on MS-Windows" doesn't > necessarily have a useful answer for this purpose.