[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: face-attribute returns wrong foreground color for inheriting face.
From: |
David Kastrup |
Subject: |
Re: face-attribute returns wrong foreground color for inheriting face. |
Date: |
28 Oct 2001 14:50:05 +0100 |
>>>>> "Miles" == Miles Bader <address@hidden> writes:
Miles> address@hidden (David Kastrup) writes:
>> What happens if the font defines a *relative* value for an attribute?
>> Will the :inherit tree be consulted for further resolution of that
>> size?
Miles> Yes
>> If so, in case it leads to relative specs again, what will be taken
>> into account? The first path resolving to a relative or absolute
>> value only, or will the entire :inherit tree be merged with regard to
>> relative sizes?
Miles> Multiple relative heights will be merged until the height
Miles> becomes absolute, in the same manner that display face
Miles> merging operates (or at least, that's the intent).
Miles> E.g. the `Info-title-*-face' faces are a hierarchy of
Miles> inherited faces where each level scales the height of the
Miles> previous level by 1.2, and in my emacs, the last level
Miles> scales by 1.1:
Miles> (face-attribute 'Info-title-1-face :height nil nil)
Miles> 1.2
Miles> (face-attribute 'Info-title-1-face :height nil t)
Miles> 1.9008
Miles> (face-attribute 'Info-title-1-face :height nil 'default)
Miles> 237
That does not answer my question at all. Of course relative heights
along a single line of heritage are combined. My question was what
happens to relative heights on separate branches.
Namely if I have in a face the specification
:inherit '(parent1 parent2)
and both parent1 and parent2 have relative height specifications (or
assume that parent1 has relative and parent2 absolute height
specification), will the result be a combination of the two, or just
that from parent1?
I think the latter more logical, since I would find it strange to
combine size specs from different lines of heritage.
According to that terminology, I would think that the INHERIT argument
should correspond to a *single* line of heritage in that relative size
specs in it are *combined*.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden