# HG changeset patch # User John Daggett # Date 1376617306 -32400 # Node ID dbd4337ff7d72e1e8fd6d257825f00bdc0e40ae6 # Parent 1bd7f210c4618f820399b45715f0da40660fb06b [css3-fonts] switch examples to use .woff files diff -r 1bd7f210c461 -r dbd4337ff7d7 css-fonts/Fonts.html --- a/css-fonts/Fonts.html Fri Aug 16 10:14:45 2013 +0900 +++ b/css-fonts/Fonts.html Fri Aug 16 10:41:46 2013 +0900 @@ -2211,7 +2211,7 @@
 @font-face {
   font-family: Gentium;
-  src: url(http://example.com/fonts/Gentium.ttf);
+  src: url(http://example.com/fonts/Gentium.woff);
 }
 
 p { font-family: Gentium, serif; }
@@ -2332,9 +2332,9 @@
    font).
 
   
-src: url(fonts/simple.ttf);   /* load simple.ttf relative to stylesheet location */
-src: url(/fonts/simple.ttf);  /* load simple.ttf from absolute location */
-src: url(fonts.svg#simple);   /* load SVG font with id 'simple' */
+src: url(fonts/simple.woff);   /* load simple.woff relative to stylesheet location */
+src: url(/fonts/simple.woff);  /* load simple.woff from absolute location */
+src: url(fonts.svg#simple);    /* load SVG font with id 'simple' */
 

External references consist of a URL, followed by an optional hint @@ -2430,8 +2430,8 @@ /* regular face of Gentium */ @font-face { font-family: MyGentium; - src: local(Gentium), /* use locally available Gentium */ - url(Gentium.ttf); /* otherwise, download it */ + src: local(Gentium), /* use locally available Gentium */ + url(Gentium.woff); /* otherwise, download it */ }

@@ -2446,9 +2446,9 @@ /* bold face of Gentium */ @font-face { font-family: MyGentium; - src: local(Gentium Bold), /* full font name */ - local(Gentium-Bold), /* Postscript name */ - url(GentiumBold.ttf); /* otherwise, download it */ + src: local(Gentium Bold), /* full font name */ + local(Gentium-Bold), /* Postscript name */ + url(GentiumBold.woff); /* otherwise, download it */ font-weight: bold; } @@ -2537,8 +2537,8 @@
 @font-face {
   font-family: MainText;
-  src: url(gentium.eot); /* for use with older non-conformant user agents */
-  src: local("Gentium"), url(gentium.ttf);  /* Overrides src definition */
+  src: url(gentium.eot);                     /* for use with older user agents */
+  src: local("Gentium"), url(gentium.woff);  /* Overrides src definition */
 }
 
@@ -2766,7 +2766,7 @@
 @font-face {
   font-family: BBCBengali;
-  src: url(fonts/BBCBengali.ttf) format("opentype");
+  src: url(fonts/BBCBengali.woff) format("woff");
   unicode-range: U+00-FF, U+980-9FF;
 }
 
@@ -2804,7 +2804,7 @@ @font-face { font-family: JapaneseWithGentium; - src: url(../fonts/Gentium.ttf); + src: url(../fonts/Gentium.woff); unicode-range: U+0-2FF; } @@ -2818,14 +2818,14 @@ /* fallback font - size: 4.5MB */ @font-face { font-family: DroidSans; - src: url(DroidSansFallback.ttf); + src: url(DroidSansFallback.woff); /* no range specified, defaults to entire range */ } /* Japanese glyphs - size: 1.2MB */ @font-face { font-family: DroidSans; - src: url(DroidSansJapanese.ttf); + src: url(DroidSansJapanese.woff); unicode-range: U+3000-9FFF, U+ff??; } @@ -2833,7 +2833,7 @@ punctuation and symbols - size: 190KB */ @font-face { font-family: DroidSans; - src: url(DroidSans.ttf); + src: url(DroidSans.woff); unicode-range: U+000-5FF, U+1e00-1fff, U+2000-2300; } @@ -2848,7 +2848,7 @@

In this case the user agent first checks the unicode-range for the font - containing Latin characters (DroidSans.ttf). Since all the characters + containing Latin characters (DroidSans.woff). Since all the characters above are in the range U+0-5FF, the user agent downloads the font and renders the text with that font.

@@ -2997,7 +2997,7 @@
 @font-face {
   font-family: GeometricModern;
-  src: url(font.ttf);
+  src: url(font.woff);
 }
 
 p {
@@ -3051,14 +3051,14 @@
 
   
 /* same origin (i.e. domain, scheme, port match document) */
-src: url(fonts/simple.ttf);
-src: url(//fonts/simple.ttf);
+src: url(fonts/simple.woff);
+src: url(//fonts/simple.woff);
 
 /* cross origin, different scheme */
-src: url(https://example.com/fonts/simple.ttf);
+src: url(https://example.com/fonts/simple.woff);
 
 /* cross origin, different domain */
-src: url(http://another.example.com/fonts/simple.ttf);
+src: url(http://another.example.com/fonts/simple.woff);
 

4.9.2 @@ -5627,7 +5627,7 @@
@font-face {
   font-family: MainText;
-  src: url(http://example.com/font.ttf);
+  src: url(http://example.com/font.woff);
   font-variant: oldstyle-nums proportional-nums styleset(1,3);
 }
 
@@ -5911,6 +5911,10 @@
    
  • reorder feature precedence such that features implied by other CSS properties override ‘font-variant’ settings + +
  • switched examples to use .woff files + +
  • minor editorial cleanups

    Acknowledgments

    diff -r 1bd7f210c461 -r dbd4337ff7d7 css-fonts/doc-20130711-LCWD.html --- a/css-fonts/doc-20130711-LCWD.html Fri Aug 16 10:14:45 2013 +0900 +++ b/css-fonts/doc-20130711-LCWD.html Fri Aug 16 10:41:46 2013 +0900 @@ -43,7 +43,6 @@ definition of same-origin restriction for font loading is contradictory Raised By: Anne van Kesteren Addressed by: http://lists.w3.org/Archives/Public/www-style/2013Jul/0428.html -No response from commenter.
  • @@ -56,6 +55,37 @@
     Group response: http://lists.w3.org/Archives/Public/www-style/2013Aug/0110.html
     
    +
    +Issue 3:
    +http://lists.w3.org/Archives/Public/www-style/2013Aug/0235.html
    +political joke in one of the examples
    +Raised By: Sergey Malkin
    +Addressed by: http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html
    +Fixed in: https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461
    +
    + +
    +Issue 4:
    +http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html
    +definition of 'auto' value of 'font-size-adjust' is misleading
    +Raised By: Vladimir Levantovsky
    +
    +
    + +
    +Issue 5:
    +http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html
    +editorial: examples should use WOFF fonts rather than TrueType fonts
    +Raised By: Vladimir Levantovsky
    +
    +
    +