[Top][All Lists]

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

Re: `font-face-attributes' sometimes returns bogus :height value

From: Chong Yidong
Subject: Re: `font-face-attributes' sometimes returns bogus :height value
Date: Tue, 17 Jun 2008 10:50:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Kenichi Handa <address@hidden> writes:

>> If `font-face-attributes' is called without a specified height, it
>> returns an attribute list containing `:height nil', which is invalid.
>> E.g.
>>    (font-face-attributes "Dejavu Serif")
>>>> (:family "Dejavu Serif" :height nil :weight normal :slant normal :width 
>>>> normal)
>> Since it is quite useful to work with no specified, I think this case
>> should be supported properly.
>> To make this work means either omitting the :height attribute entirely
>> from the returned attribute-list, or alternatively, keeping it, but
>> using `:height unspecified' for the height.
> I think :weight thru :width should also be omitted or
> `unspecified' in the above case.

Why should it affect the :weight and :slant parameters?  The user can
specify "Dejavu Serif Bold Itallic" or "Dejavu Serif:bold:italic", etc.

reply via email to

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