W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: [css3-values] cap-height unit?

From: Ambrose Li <ambrose.li@gmail.com>
Date: Mon, 1 Dec 2008 15:53:44 -0500
Message-ID: <af2cae770812011253t459929e5h55067cccaf663927@mail.gmail.com>
To: "Sylvain Galineau" <sylvaing@microsoft.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, "www-style@w3.org" <www-style@w3.org>

2008/12/1 Sylvain Galineau <sylvaing@microsoft.com>:
>
>> Would it be useful to add a unit representing the height of capitals
>> in the current font?  [snip] It seems like it could be useful when sizing
>> images to fit within a line of text, and it further seems like the
>> implementation could share a lot of code with the implementation of the 'ex' unit.
>
> My first reaction aligns with Stanimir's suggestion i.e. wouldn't a line-height multiple be more useful for this use-case ?

A lot of times an image is used as a character (e.g., which has no
Unicode, or which is unusual and so absent in most common fonts). A
cap-height unit would be more useful in this case.


-- 
cheers,
-ambrose

The 'net used to be run by smart people; now many sites are run by
idiots. So SAD... (Sites that do spam filtering on mails sent to the
abuse contact need to be cut off the net...)
Received on Monday, 1 December 2008 20:54:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:17 GMT