[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: |
Kenichi Handa |
Subject: |
Re: `font-face-attributes' sometimes returns bogus :height value |
Date: |
Wed, 18 Jun 2008 09:30:53 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
In article <address@hidden>, Chong Yidong <address@hidden> writes:
> 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.
Because just "Dejavu Serif" doesn't specify any
style-related properties.
---
Kenichi Handa
address@hidden