From: Chong Yidong <cyd@stupidchicken.com>
To: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: `font-face-attributes' sometimes returns bogus :height value
Date: Tue, 17 Jun 2008 10:50:29 -0400 [thread overview]
Message-ID: <87wskoxgi2.fsf@stupidchicken.com> (raw)
In-Reply-To: <E1K8TDw-0006VR-IR@etlken.m17n.org> (Kenichi Handa's message of "Tue, 17 Jun 2008 13:55:16 +0900")
Kenichi Handa <handa@m17n.org> 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.
next prev parent reply other threads:[~2008-06-17 14:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 3:05 `font-face-attributes' sometimes returns bogus :height value Miles Bader
2008-06-17 4:55 ` Kenichi Handa
2008-06-17 14:11 ` Miles Bader
2008-06-17 14:37 ` Chong Yidong
2008-06-17 14:50 ` Chong Yidong [this message]
2008-06-17 21:13 ` Miles Bader
2008-06-18 0:30 ` Kenichi Handa
2008-06-20 23:23 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wskoxgi2.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=handa@m17n.org \
--cc=miles@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.