[css3-fonts] switch examples to use .woff files
authorJohn Daggett <jdaggett@mozilla.com>
Fri, 16 Aug 2013 10:41:46 +0900
changeset 8860dbd4337ff7d7
parent 8859 1bd7f210c461
child 8861 2d985fc160d2
[css3-fonts] switch examples to use .woff files
css-fonts/Fonts.html
css-fonts/doc-20130711-LCWD.html
     1.1 --- a/css-fonts/Fonts.html	Fri Aug 16 10:14:45 2013 +0900
     1.2 +++ b/css-fonts/Fonts.html	Fri Aug 16 10:41:46 2013 +0900
     1.3 @@ -2211,7 +2211,7 @@
     1.4     <pre>
     1.5  @font-face {
     1.6    font-family: Gentium;
     1.7 -  src: url(http://example.com/fonts/Gentium.ttf);
     1.8 +  src: url(http://example.com/fonts/Gentium.woff);
     1.9  }
    1.10  
    1.11  p { font-family: Gentium, serif; }
    1.12 @@ -2332,9 +2332,9 @@
    1.13     font).
    1.14  
    1.15    <pre>
    1.16 -src: url(fonts/simple.ttf);   /* load simple.ttf relative to stylesheet location */
    1.17 -src: url(/fonts/simple.ttf);  /* load simple.ttf from absolute location */
    1.18 -src: url(fonts.svg#simple);   /* load SVG font with id 'simple' */
    1.19 +src: url(fonts/simple.woff);   /* load simple.woff relative to stylesheet location */
    1.20 +src: url(/fonts/simple.woff);  /* load simple.woff from absolute location */
    1.21 +src: url(fonts.svg#simple);    /* load SVG font with id 'simple' */
    1.22  </pre>
    1.23  
    1.24    <p>External references consist of a URL, followed by an optional hint
    1.25 @@ -2430,8 +2430,8 @@
    1.26  /* regular face of Gentium */
    1.27  @font-face {
    1.28    font-family: MyGentium;
    1.29 -  src: local(Gentium),   /* use locally available Gentium */
    1.30 -       url(Gentium.ttf); /* otherwise, download it */
    1.31 +  src: local(Gentium),    /* use locally available Gentium */
    1.32 +       url(Gentium.woff); /* otherwise, download it */
    1.33  }
    1.34  </pre>
    1.35  
    1.36 @@ -2446,9 +2446,9 @@
    1.37  /* bold face of Gentium */
    1.38  @font-face {
    1.39    font-family: MyGentium;
    1.40 -  src: local(Gentium Bold),   /* full font name */
    1.41 -       local(Gentium-Bold),   /* Postscript name */
    1.42 -       url(GentiumBold.ttf);  /* otherwise, download it */
    1.43 +  src: local(Gentium Bold),    /* full font name */
    1.44 +       local(Gentium-Bold),    /* Postscript name */
    1.45 +       url(GentiumBold.woff);  /* otherwise, download it */
    1.46    font-weight: bold;
    1.47  }
    1.48  </pre>
    1.49 @@ -2537,8 +2537,8 @@
    1.50     <pre>
    1.51  @font-face {
    1.52    font-family: MainText;
    1.53 -  src: url(gentium.eot); /* for use with older non-conformant user agents */
    1.54 -  src: local("Gentium"), url(gentium.ttf);  /* Overrides src definition */
    1.55 +  src: url(gentium.eot);                     /* for use with older user agents */
    1.56 +  src: local("Gentium"), url(gentium.woff);  /* Overrides src definition */
    1.57  }
    1.58  </pre>
    1.59    </div>
    1.60 @@ -2766,7 +2766,7 @@
    1.61     <pre>
    1.62  @font-face {
    1.63    font-family: BBCBengali;
    1.64 -  src: url(fonts/BBCBengali.ttf) format("opentype");
    1.65 +  src: url(fonts/BBCBengali.woff) format("woff");
    1.66    unicode-range: U+00-FF, U+980-9FF;
    1.67  }
    1.68  </pre>
    1.69 @@ -2804,7 +2804,7 @@
    1.70  
    1.71  @font-face {
    1.72    font-family: JapaneseWithGentium;
    1.73 -  src: url(../fonts/Gentium.ttf);
    1.74 +  src: url(../fonts/Gentium.woff);
    1.75    unicode-range: U+0-2FF;
    1.76  }
    1.77  </pre>
    1.78 @@ -2818,14 +2818,14 @@
    1.79  /* fallback font - size: 4.5MB */
    1.80  @font-face {
    1.81    font-family: DroidSans;
    1.82 -  src: url(DroidSansFallback.ttf);
    1.83 +  src: url(DroidSansFallback.woff);
    1.84    /* no range specified, defaults to entire range */
    1.85  }
    1.86  
    1.87  /* Japanese glyphs - size: 1.2MB */
    1.88  @font-face {
    1.89    font-family: DroidSans;
    1.90 -  src: url(DroidSansJapanese.ttf);
    1.91 +  src: url(DroidSansJapanese.woff);
    1.92    unicode-range: U+3000-9FFF, U+ff??;
    1.93  }
    1.94  
    1.95 @@ -2833,7 +2833,7 @@
    1.96     punctuation and symbols - size: 190KB */
    1.97  @font-face {
    1.98    font-family: DroidSans;
    1.99 -  src: url(DroidSans.ttf);
   1.100 +  src: url(DroidSans.woff);
   1.101    unicode-range: U+000-5FF, U+1e00-1fff, U+2000-2300;
   1.102  }
   1.103  </pre>
   1.104 @@ -2848,7 +2848,7 @@
   1.105  </pre>
   1.106  
   1.107     <p>In this case the user agent first checks the unicode-range for the font
   1.108 -    containing Latin characters (DroidSans.ttf). Since all the characters
   1.109 +    containing Latin characters (DroidSans.woff). Since all the characters
   1.110      above are in the range U+0-5FF, the user agent downloads the font and
   1.111      renders the text with that font.</p>
   1.112  
   1.113 @@ -2997,7 +2997,7 @@
   1.114    <pre>
   1.115  @font-face {
   1.116    font-family: GeometricModern;
   1.117 -  src: url(font.ttf);
   1.118 +  src: url(font.woff);
   1.119  }
   1.120  
   1.121  p {
   1.122 @@ -3051,14 +3051,14 @@
   1.123  
   1.124    <pre>
   1.125  /* same origin (i.e. domain, scheme, port match document) */
   1.126 -src: url(fonts/simple.ttf);
   1.127 -src: url(//fonts/simple.ttf);
   1.128 +src: url(fonts/simple.woff);
   1.129 +src: url(//fonts/simple.woff);
   1.130  
   1.131  /* cross origin, different scheme */
   1.132 -src: url(https://example.com/fonts/simple.ttf);
   1.133 +src: url(https://example.com/fonts/simple.woff);
   1.134  
   1.135  /* cross origin, different domain */
   1.136 -src: url(http://another.example.com/fonts/simple.ttf);
   1.137 +src: url(http://another.example.com/fonts/simple.woff);
   1.138  </pre>
   1.139  
   1.140    <h4 id=allowing-cross-origin-font-loading><span class=secno>4.9.2
   1.141 @@ -5627,7 +5627,7 @@
   1.142  
   1.143     <pre>@font-face {
   1.144    font-family: MainText;
   1.145 -  src: url(http://example.com/font.ttf);
   1.146 +  src: url(http://example.com/font.woff);
   1.147    font-variant: oldstyle-nums proportional-nums styleset(1,3);
   1.148  }
   1.149  
   1.150 @@ -5911,6 +5911,10 @@
   1.151     <li>reorder feature precedence such that features implied by other CSS
   1.152      properties override ‘<code class=property>font-variant</code>’
   1.153      settings
   1.154 +
   1.155 +   <li>switched examples to use .woff files
   1.156 +
   1.157 +   <li>minor editorial cleanups
   1.158    </ul>
   1.159  
   1.160    <h2 class=no-num id=acknowledgments>Acknowledgments</h2>
     2.1 --- a/css-fonts/doc-20130711-LCWD.html	Fri Aug 16 10:14:45 2013 +0900
     2.2 +++ b/css-fonts/doc-20130711-LCWD.html	Fri Aug 16 10:41:46 2013 +0900
     2.3 @@ -43,7 +43,6 @@
     2.4  definition of same-origin restriction for font loading is contradictory
     2.5  Raised By: Anne van Kesteren
     2.6  Addressed by: <a href="http://lists.w3.org/Archives/Public/www-style/2013Jul/0428.html">http://lists.w3.org/Archives/Public/www-style/2013Jul/0428.html</a>
     2.7 -No response from commenter.
     2.8  </pre>
     2.9  
    2.10  <pre class="a" id="issue-2">
    2.11 @@ -56,6 +55,37 @@
    2.12  Group response: <a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0110.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0110.html</a>
    2.13  </pre>
    2.14  
    2.15 +<pre class="a" id="issue-3">
    2.16 +<a href="#issue-3">Issue 3</a>:
    2.17 +<a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0235.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0235.html</a>
    2.18 +political joke in one of the examples
    2.19 +Raised By: Sergey Malkin
    2.20 +Addressed by: <a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html</a>
    2.21 +Fixed in: <a href="https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461">https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461</a>
    2.22 +</pre>
    2.23 +
    2.24 +<pre class="open" id="issue-4">
    2.25 +<a href="#issue-4">Issue 4</a>:
    2.26 +<a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html</a>
    2.27 +definition of 'auto' value of 'font-size-adjust' is misleading
    2.28 +Raised By: Vladimir Levantovsky
    2.29 +<!--
    2.30 +Addressed by: <a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html</a>
    2.31 +Fixed in: <a href="https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461">https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461</a>
    2.32 +-->
    2.33 +</pre>
    2.34 +
    2.35 +<pre class="open" id="issue-5">
    2.36 +<a href="#issue-5">Issue 5</a>:
    2.37 +<a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0239.html</a>
    2.38 +editorial: examples should use WOFF fonts rather than TrueType fonts
    2.39 +Raised By: Vladimir Levantovsky
    2.40 +<!--
    2.41 +Addressed by: <a href="http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html">http://lists.w3.org/Archives/Public/www-style/2013Aug/0251.html</a>
    2.42 +Fixed in: <a href="https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461">https://dvcs.w3.org/hg/csswg/rev/1bd7f210c461</a>
    2.43 +-->
    2.44 +</pre>
    2.45 +
    2.46  <!--
    2.47  <pre class="r" id="issue-3">
    2.48  <a href="#issue-3">Issue 3</a>: