emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: face-attribute returns wrong foreground color for inheriting face.


From: Miles Bader
Subject: Re: face-attribute returns wrong foreground color for inheriting face.
Date: 28 Oct 2001 22:22:15 +0900

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?

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?

Multiple relative heights will be merged until the height becomes
absolute, in the same manner that display face merging operates (or at
least, that's the intent).

E.g. the `Info-title-*-face' faces are a hierarchy of inherited faces
where each level scales the height of the previous level by 1.2, and in
my emacs, the last level scales by 1.1:

   (face-attribute 'Info-title-1-face :height nil nil)
   1.2
   (face-attribute 'Info-title-1-face :height nil t)
   1.9008
   (face-attribute 'Info-title-1-face :height nil 'default)
   237

Note, however, that the actual displayed font may be different, due to
font-selection issues.

-Miles
-- 
.Numeric stability is probably not all that important when you're guessing.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]