W3C home > Mailing lists > Public > www-style@w3.org > February 2010

Re: [css3-fonts] Please add font-variant-caps: all-small-caps and all-petite-caps

From: Adam Twardoch (List) <list.adam@twardoch.com>
Date: Fri, 26 Feb 2010 04:24:46 +0100
Message-ID: <4B873EFE.8000407@twardoch.com>
To: www-style <www-style@w3.org>
CC: fantasai <fantasai.lists@inkedblade.net>
fantasai wrote:
> Wouldn't
>   text-transform: lower-case;
>   font-variant: small-caps
> or
>   text-transform: lower-case;
>   font-variant: petite-caps
> work?

It would have a different effect. First, uppercase Unicode characters
would be transformed to lowercase Unicode characters, and then the
OpenType "smcp" feature would be applied to lowercase font glyphs. This
is not always equal to the effect of applying the OpenType "c2sc"
feature to uppercase font glyphs.

For example, the small-cap variants of certain uppercase Greek letters
may be different than the small-cap variants of their lowercase
counterparts. The transformation would also not work for certain Unicode
characters that do not have a lowercase variant (e.g. U+1E9E: ẞ).
Finally, some fonts include additional transformations in the "c2sc"
OpenType feature, for example for punctuation characters. For instance,
if the text is set in all small caps, the font could also substitute
parantheses or brackets by smaller variants -- but the normally-sized
brackets or parantheses would be used if small caps are only applied to
lowercase letters.

-- 

Adam Twardoch
| Language Typography Unicode Fonts OpenType
| twardoch.com | silesian.com | fontlab.net

Reporter: "So what will your trip to Ireland look like?"
Lech Wałęsa: "I get into a car, then onto a plane, and then the other
way around."
Received on Friday, 26 February 2010 03:25:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:24 GMT