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: Mon, 4 Oct 2021 21:11:24 +0200 (CEST) Message-ID: <1048176278.452440.1633374684696@mail1.libero.it> References: <1758826875.387473.1633124447794@mail1.libero.it> <87a6jsqbhq.fsf@protesilaos.com> 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="21457"; mail-complaints-to="usenet@ciao.gmane.io" To: Protesilaos Stavrou , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 04 21:12:51 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 1mXTON-0005EN-CO for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 21:12:51 +0200 Original-Received: from localhost ([::1]:34596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXTOB-0007e5-VA for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 15:12:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXTN5-0006uZ-2K for emacs-devel@gnu.org; Mon, 04 Oct 2021 15:11:31 -0400 Original-Received: from smtp-32-i2.italiaonline.it ([213.209.12.32]:44240 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 1mXTN2-0002WU-Su for emacs-devel@gnu.org; Mon, 04 Oct 2021 15:11:30 -0400 Original-Received: from oxapps-38-180.iol.local ([10.101.8.226]) by smtp-32.iol.local with ESMTPA id XTMymgxpVPvRTXTMymy5bO; Mon, 04 Oct 2021 21:11:25 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1633374685; bh=4TSTKvB7fiB0IFkcWySc9Inrje36cLpGHf66jO08xjw=; h=From; b=NKjLRunyETs7o4ElbLbXaudF8cRquRgyscp/mWudVvMpybOraEynJ+kE+Q5X+TzPP Ihs4fVIPozcmQXCphx9afzlLgqF+rk42t7XyhXPHUlDG0BH1RtONPkEG2Skclld/GQ HSUaKkI9ZiWDs8YMimwwVtFyIUA7rf0ya2MD5SiAoBqTViXufR8rqbh4mJ7g4BMUcO rbSatI65D0JeUoElkPIy8fD/5UVWNoriFjwYxfk1cHy9FrQmeiR54aUAaqQ+ZJyAd2 wycUS189qgLHuwVnwsqHy3p+nR1Bm01iKPogZhJVbEeNx2wGkfvI8REH/Zw6hdRe2F oKlbSQvjQtffg== X-CNFS-Analysis: v=2.4 cv=NqgUz+RJ c=1 sm=1 tr=0 ts=615b51dd cx=a_exe a=iDQO1/bvHRIQcG0iIb/wbg==:117 a=S8WEH7Tz98QA:10 a=IkcTkHD0fZMA:10 a=YFlUmLAivj0A:10 a=MrkmwI73HjH1Oko6ttYA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <87a6jsqbhq.fsf@protesilaos.com> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.3-Rev34 X-Originating-IP: 79.23.91.89 X-Originating-Client: open-xchange-appsuite x-libjamsun: KznDvwJOKW4cew1fXcX7gI5+DatBAUMA x-libjamv: 2u2F8UH+zTo= X-CMAE-Envelope: MS4xfEAT0dE7oRAQZ3UDheFtf495NvtBWtrud48ah4ICQib4JW4+CmcWRRBKuUnD0P945ltpFUzmRlxcHHu5bxhEQbNUJnNc4BgUCz5zGLMdUrVMF5bsZfk3 H7iVCKY1OCYzPhzemTzqWA5jWSV2290BC9xi9NwBS3ajHXg6JZn1qd22ItRISnH6zsFi9Jtv3gw4WqkDtgobNuuxvC8B52cG9/P5TNXrLqezZ+o97MdXo1Zn Received-SPF: pass client-ip=213.209.12.32; 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=ham 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:276250 Archived-At: > 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 > > Org documents display a different ugly (in my opinion) font. See the > > fields > > > > #+language: > > #+options: toc:2 H:3 num:2 email:t > > #+include: > > > > #+begin_quote > > #+end_quote > > > > in test.org-emacs29-01oct2021.png attached. > > > > With the build I did a month ago *all* is rendered with the same font, > > just the color changes. See the attached > > test.org-emacs28-02sep2021.png. > > > > If this is not a bug, How can I restore the previous behavior? > > > > In my init file I have: > > > > (set-frame-font "JetBrains Mono-11" nil t) > > > > (setq default-frame-alist > > '( > > (width . 115) ; character > > (height . 49) ; lines > > ;;(fullscreen . fullheight) > > ;;(left . (- 0)); pixel > > ;;(top . (+ 0)); pixel > > (left . 840); pixel > > (top . 0); pixel > > (font . "JetBrains Mono-11") ; font > > )) > > Hello Angelo, > > This must be because in Org 9.5 those constructs inherit from the > 'variable-pitch' face. The idea behind that is to make the buffer > preserve spacing sensitive elements while using M-x variable-pitch-mode. > > Please try using something like this: > > (set-face-attribute 'fixed-pitch nil > :family (face-attribute 'default :family) > :height (face-attribute 'default :height)) > Just for completeness, It seems I need those settings only on Windows (10 pro 64) and macOS (10.13.6) because on GNU/Linux (with Monospaced font) I do not see the issue: those fields ("#+language:", "#+options:" etc.) are rendered with the same font! On Windows and macOS, instead, they are rendered differently (and ugly!).. On Windows I tried other fonts (Lucida Console, Cascadia Code) but with the same ugly results. On macOS the font is 'Monaco'. Ciao, Angelo.