From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Proportional fonts in the mode line (one month test) Date: Wed, 24 Nov 2021 09:18:37 -0800 Message-ID: References: <87h7c1u0cg.fsf@gnus.org> <878rxdld9x.fsf@telefonica.net> <11AA7DE8-8EB7-48A2-87EC-FC6D5486C948@gmail.com> <874k81lbua.fsf@telefonica.net> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 24 18:19:37 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 1mpvvj-0003pg-AB for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Nov 2021 18:19:35 +0100 Original-Received: from localhost ([::1]:57954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpvvh-0001Qd-T4 for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Nov 2021 12:19:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpvus-0008Ni-B6 for emacs-devel@gnu.org; Wed, 24 Nov 2021 12:18:42 -0500 Original-Received: from [2607:f8b0:4864:20::72d] (port=37513 helo=mail-qk1-x72d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpvuq-0005BR-MY for emacs-devel@gnu.org; Wed, 24 Nov 2021 12:18:42 -0500 Original-Received: by mail-qk1-x72d.google.com with SMTP id m186so3601157qkb.4 for ; Wed, 24 Nov 2021 09:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kJqplSzInvQiTANt5zq+ga/UOwkN60iPd5rFTsyVh6Q=; b=COXk4rQC4m0up/5EE+vfe+oALtoo3b3WJilOZ/JH+5Hc1CZ4EAcbD8BP5RrOgqZKdJ tF5t+aBEyixUE1ELexVqIftPlqEodMmYJChoLf05mH6z3MO99wiHo6R+WqtbLYOQBK3R jN74B9y4y3MwYACRkX4/BldapQTauvlKH6xG0mYj0AAjtW0xfJBvPwseL0Q0EfTvdQPM XMpjhEJHLlDhXvVqOrYXHklTdR2PwsVZoEUIoguAX7BaweP9qjij98FUVsOA673Imdht 8mCPoIgJ8srzD0IAWpXCNDHn/HIlVYlMcdJwa6FIIAzISPM7UspPvzjVL/o10A2rYx4Z DzTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=kJqplSzInvQiTANt5zq+ga/UOwkN60iPd5rFTsyVh6Q=; b=mljhgIacqIXKvK0t4sPMXUcZpUaS46BESAiljA5+oaq1EQdCLXmETfXzKg0Iw21Act 5wJm/l8INvyRya3V/VZ++ydOpZmncNGjYB9meXFL+NgAUk+BVMXcuczhPf2Odlzy5jwO E2oaIS/UmyyZtHOoNp8m0YSJLQlpKNMTLi8v85gGZLlI50AqfFebi4sZpk7Rc5EEO+DH DKbO+WhZ5McFWMxU088H/FXD0WQ8R47QgG94/SyxebxhkOOELCrXT9NufzbpAyaMol/x aUDvAyFekjmbjDMiJ+p8GSnWG8oXEc23oLuJHt38d8c9YQH30bWqBjVrhSdPaDMQMWNS nTYQ== X-Gm-Message-State: AOAM533gfhor5VXee8O+rtIZD55DF4Y26fJAp1zjcwtYcnpq4LmXxVBm sTWalmYmLY/b0zkm7LlvmuM= X-Google-Smtp-Source: ABdhPJwwpy1p+wY2xvE+OrTq0X069iymT3by/2D8ig2Uw6MHAOJbirtzufg3t4Y8seN0RTaxd/XQcA== X-Received: by 2002:a05:620a:4008:: with SMTP id h8mr7882750qko.302.1637774319417; Wed, 24 Nov 2021 09:18:39 -0800 (PST) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:1567:ff0f:8ef5:fc6d]) by smtp.gmail.com with ESMTPSA id r16sm179768qkp.42.2021.11.24.09.18.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Nov 2021 09:18:39 -0800 (PST) In-Reply-To: <874k81lbua.fsf@telefonica.net> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::72d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=casouri@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280025 Archived-At: > On Nov 24, 2021, at 9:09 AM, =C3=93scar Fuentes = wrote: >=20 > Yuan Fu writes: >=20 >>> So far I like it. >>>=20 >>> However, as soon as some theme is activated, the modeline goes back = to >>> monospace. How can I prevent that? >>>=20 >>> To reproduce: >>>=20 >>> emacs -Q >>> M-x load-theme modus-operandi >>=20 >> I guess the theme set their own face for mode-line which inherited >> from default which uses a fixed-width font. >=20 > If this is true it is a common practice, because all themes I tried so > far (about 5) show this behavior. >=20 > I inspected nord-theme (1) and it contains >=20 > `(mode-line ((,class (:foreground ,nord8 :background ,nord3)))) > `(mode-line-buffer-id ((,class (:weight bold)))) > `(mode-line-highlight ((,class (:inherit highlight)))) > `(mode-line-inactive ((,class (:foreground ,nord4 :background = ,nord-uniform-mode-lines-background)))) >=20 > 1: https://github.com/arcticicestudio/nord-emacs >=20 >=20 I don=E2=80=99t think that should be a problem, if a theme wants to use = proportional font for mode-line, they can change their definition of = mode-line face. And if some one uses a theme with fixed-width mode-line = but wants proportional-width mode-line, they can redefine mode-line = face. Yuan