W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css3-fonts] @font-face font-family names used in other @font-face rules

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 04 Mar 2013 20:20:37 +0100
Message-ID: <5134F405.3060800@exyr.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Adam Prescott <adam@aprescott.com>, www-style list <www-style@w3.org>
Le 04/03/2013 19:52, Tab Atkins Jr. a écrit :
> @font-face {
>    font-family: "FooWithBarAmpersand";
>    src: url("http://example.com/foo.ttf");
> }
> @font-face {
>    font-family: "FooWithBarAmpersand";
>    src: url("http://example.com/bar.ttf");
>    unicode-range: u+26;
> }
>
> Note that you can do this even if you don't control the CSS that sets
> up the initial foo.ttf face, as long as you ensure that it appears
> first in the CSS document order.  For example, if you're loading a
> "Wendy One" font from Google's webfont directory, you can do:
>
> @import url(http://fonts.googleapis.com/css?family=Wendy+One);
> @font-face {
>    font-family: "Wendy One";
>    src: url("fancy-ampersand.ttf");
>    unicode-range: u+26;
> }

I think that Adam asked for the opposite: only use the ampersand from a 
font from Google Web Fonts.

-- 
Simon Sapin
Received on Monday, 4 March 2013 19:21:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT