From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.devel Subject: Re: Emacs master: different (ugly) font in org-mode Date: Sat, 02 Oct 2021 07:47:13 +0300 Message-ID: <87a6jsqbhq.fsf@protesilaos.com> References: <1758826875.387473.1633124447794@mail1.libero.it> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23209"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.33.2 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: Angelo Graziosi , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 02 06:48:04 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 1mWWwO-0005p2-3M for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 06:48:04 +0200 Original-Received: from localhost ([::1]:41730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWWwL-0006CQ-7o for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 00:48:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWWvh-0005Xg-PE for emacs-devel@gnu.org; Sat, 02 Oct 2021 00:47:21 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWWvf-0001fz-Gg for emacs-devel@gnu.org; Sat, 02 Oct 2021 00:47:21 -0400 Original-Received: (Authenticated sender: public@protesilaos.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id A8539FF804; Sat, 2 Oct 2021 04:47:14 +0000 (UTC) In-Reply-To: <1758826875.387473.1633124447794@mail1.libero.it> Received-SPF: none client-ip=217.70.183.199; envelope-from=info@protesilaos.com; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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:276045 Archived-At: 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)) All the best, Protesilaos -- Protesilaos Stavrou https://protesilaos.com