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.bugs Subject: bug#46853: Confusing terminology "face height" instead of "font size" Date: Thu, 04 Mar 2021 15:46:08 +0200 Message-ID: <837dmnjalb.fsf@gnu.org> References: <875z2a4x2c.fsf@gnus.org> <87tupu3cdd.fsf@gnus.org> <83zgzm7jlu.fsf@gnu.org> <87czwi3bfr.fsf@gnus.org> <83sg5e7ihe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22632"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46853@debbugs.gnu.org, larsi@gnus.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 04 14:48:04 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lHoKi-0005nY-9q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 14:48:04 +0100 Original-Received: from localhost ([::1]:55360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHoKh-0003PP-1R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Mar 2021 08:48:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHoJi-0003NQ-3d for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHoJh-0004xV-OZ for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHoJh-0004pZ-L1 for bug-gnu-emacs@gnu.org; Thu, 04 Mar 2021 08:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Mar 2021 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46853 X-GNU-PR-Package: emacs Original-Received: via spool by 46853-submit@debbugs.gnu.org id=B46853.161486559317047 (code B ref 46853); Thu, 04 Mar 2021 13:47:01 +0000 Original-Received: (at 46853) by debbugs.gnu.org; 4 Mar 2021 13:46:33 +0000 Original-Received: from localhost ([127.0.0.1]:58139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHoJF-0004QX-DD for submit@debbugs.gnu.org; Thu, 04 Mar 2021 08:46:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHoJD-0004KG-Ci for 46853@debbugs.gnu.org; Thu, 04 Mar 2021 08:46:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59327) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHoJ8-0004jV-5Z; Thu, 04 Mar 2021 08:46:26 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1078 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lHoJ7-0002cu-BV; Thu, 04 Mar 2021 08:46:26 -0500 In-Reply-To: (message from Stefan Kangas on Wed, 3 Mar 2021 18:16:02 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201392 Archived-At: > From: Stefan Kangas > Date: Wed, 3 Mar 2021 18:16:02 -0600 > Cc: 46853@debbugs.gnu.org > > >> and then `C-x C-+' in the buffer enlarges all the faces, even > >> variable-pitch... > > > > It only enlarges those faces which inherit their size from 'default'. > > I find the semantics here confusing. I do this in emacs -Q: > > (progn > (defface foo-bar '((t :weight bold)) "foo") > (pop-to-buffer (get-buffer-create "foo")) > (insert "aaa " (propertize "bbb" 'face 'foo-bar) " ccc") > (text-scale-adjust 3)) > > And I see that "bbb" has its font size increased together with "aaa" and > "ccc". But `M-x describe-face RET foo-bar' says that "Inherit: > unspecified". All the faces implicitly inherit from 'default'. > Looking at the manual, the node `(elisp) Basic Faces' says: > > ‘default’ > The default face, whose attributes are all specified. All other > faces implicitly inherit from it: any unspecified attribute > defaults to the attribute on this face (*note Face Attributes::). Exactly. > So when you say that "it only enlarges those faces which inherit their > size from 'default'", doesn't that just mean that *any* face is resized, > unless that face itself or any its parents specify an absolute :height > (an integer)? No, it doesn't have to be an absolute :height attribute. It can also be: . a face that inherits from a face other than 'default', which has an absolute :height attribute . a face that specifies a relative :height attribute and inherits from a face other than 'default that specifies an absolute :height . any other situation where a face recursively inherits from some other face with a non-default absolute :height