GNU bug report logs -
#46853
Confusing terminology "face height" instead of "font size"
Previous Next
Reported by: Stefan Kangas <stefan <at> marxist.se>
Date: Mon, 1 Mar 2021 16:41:01 UTC
Severity: wishlist
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Cc: stefan <at> marxist.se, 46853 <at> debbugs.gnu.org
>> Date: Mon, 01 Mar 2021 20:45:28 +0100
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> > No, it's because enlarging _all_ faces makes no sense.
>>
>> I really thought that's how this command worked, but
>>
>> emacs -Q -f list-faces-display
>>
>> 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".
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::).
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)?
This bug report was last modified 3 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.