You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>CSS2 improves client-side font matching, enables font
64
64
synthesis and progressive rendering, and enables fonts to be
65
-
downloaded over the Web.
66
-
65
+
downloaded over the Web. These enhanced capabilities are referred to as 'WebFonts'
67
66
68
67
<P>In the CSS2 font model, as in CSS1, each user agent has a "font
69
68
database" at its disposition. CSS1 referred to this database but gave no details about what was in it. CSS2 defines the information in that database and allows style sheet authors to contribute to it. When asked to display a character with a particular font,
@@ -232,8 +231,6 @@ href="syndata.html#ignore">ignored</a></span> and any sequence of
232
231
whitespace characters inside the font name is converted to a single
<!-- need to check tw for traditional chinese as used in taiwan -->
278
274
279
275
<p>This selects any element that has the given language - Japanese or Traditional Chinese - and requests the appropriate font.
280
276
</div>
@@ -329,7 +325,7 @@ H1 EM { font-style: normal }
329
325
to the uppercase ones, but in a smaller size and with slightly
330
326
different proportions. The <span
331
327
class="propinst-font-variant">'font-variant'</span> property requests such a font for <span class="index-def" title="bicameral::definition of">bicameral</span> (having two cases, as with Latin script). This property has no visible effect for scripts that are
332
-
<span class="index-def" title="unicameral, definition of"><dfn>unicameral</dfn></span> (having only one case, as with most of the world's writing systems). Values have the following
328
+
<span class="index-def" title="unicameral::definition of"><dfn>unicameral</dfn></span> (having only one case, as with most of the world's writing systems). Values have the following
333
329
meanings:</p>
334
330
335
331
<dl>
@@ -511,8 +507,6 @@ due a numerical value on 'font-size-adjust' and the unavailability
511
507
class="propinst-font-size-adjust">'font-size-adjust'</span> would
512
508
compound).
513
509
514
-
<!-- hakons suggested full fix of this involves changes that alter semantics from CSS1, so I didn't do that yet -CL -->
<dt><strong>caption</strong><!-- strong?? you mean like, bold? -->
669
+
<dt><strong>caption</strong><!-- strong?? you mean like, shouted? ;-) -->
676
670
<dd>The font used for captioned controls (e.g., buttons, drop-downs, etc.).
677
671
<dt><strong>icon</strong>
678
672
<dd>The font used to label icons.
@@ -701,7 +695,6 @@ fonts can only be specified with this property, not with <span
701
695
class="propinst-font-family">'font-family'</span> itself, so <span
702
696
class="propinst-font">'font'</span> allows authors to do more than the
703
697
sum of its subproperties. However, the individual properties such as <span class="propinst-font-weight">'font-weight'</span> are still given values taken from the system font, which can be independently varied.</p>
704
-
<!-- strange glitch, the last two paragraphs occurred twice in slightly different forms - merged and the spare copy deleted -CL -->
705
698
706
699
<div class="example"><p>
707
700
@@ -712,12 +705,15 @@ BUTTON P EM { font-weight: bolder }
712
705
</pre>
713
706
714
707
<p>If the font used for dropdown menus on a particular system
715
-
happened to be 9-point Charcoal, with a weight of 600, then P
708
+
happened to be, for example, 9-point Charcoal, with a weight of 600, then P
716
709
elements that were descendants of BUTTON would be displayed as if
717
-
this rule were in effect (the values for the remaining properties
718
-
being taken from the initial values):
710
+
this rule were in effect:
719
711
720
-
<!-- Not clear to me -IJ -->
712
+
<pre>
713
+
BUTTON P { font: 9pt 600 Charcoal }
714
+
</pre>
715
+
716
+
<p>Because the <span class="propinst-font">'font'</span> shorthand resets to its initial value any property not explicitly given a value, this has the same effect as this declaration:
721
717
722
718
<pre>
723
719
BUTTON P {
@@ -938,8 +934,6 @@ read while the requested font downloads. Once the real font has been
938
934
successfully downloaded, it replaces the
939
935
temporary font, hopefully without the need to reflow.
940
936
941
-
<!-- near duplicate paragraph removed -->
942
-
943
937
<div class="note"><P>
944
938
<em><strong>Note.</strong>
945
939
Progressive rendering requires metric information about the font in
@@ -1086,7 +1080,7 @@ stylesheet -->
1086
1080
wins and the rest must be ignored.
1087
1081
1088
1082
<p>Also, any descriptors that are not recognized or useful to the
1089
-
user agent should be <span class="index-inst" title="ignore"><a
1083
+
user agent must be <span class="index-inst" title="ignore"><a
1090
1084
href="syndata.html#ignore">ignored</a></span>. Future versions of CSS
1091
1085
may allow additional descriptors for the purpose of better font
1092
1086
substitution, matching, or synthesis.</p>
@@ -1293,8 +1287,6 @@ other descriptors depend on it.
<!-- No, it is the definition of how the em-width is subdivided to form a coordinate system for describing the shape of each glyph -CL -->
1298
1290
1299
1291
<p>This is the descriptor for the number of the <a
1300
1292
href="#emsq">coordinate units on the em square</a>, the
@@ -1308,10 +1300,9 @@ downloadable or locally installed.
1308
1300
1309
1301
<!-- #include src=descriptors/src.srb -->
1310
1302
1311
-
<p>This is a <!-- where is the font characteristic, -CL --> prioritized, comma-separated list of external references and/or locally
1303
+
<p>This is a prioritized, comma-separated list of external references and/or locally
1312
1304
installed font face names. The external reference points to the font data on the Web. This is required if the WebFont is to be downloaded. The font resource
1313
1305
may be a subset of the source font, for example it may contain only the glyphs needed for the current page or for a set of pages.
1314
-
<!-- move some of this discussion to characteristics section? -CL -->
1315
1306
1316
1307
<p>The external reference consists of a URI, followed by an optional hint regarding the format of font resource to be found at that URI, and this information should be used by clients to avoid following links to fonts in formats they are unable to use. As with any hypertext reference, there may be other formats available, but the client has a better idea of what is likely to be there, in a more robust way than trying to parse filename extensions in URIs.
1317
1308
@@ -1334,7 +1325,7 @@ that denote well-known font formats. The user agent will recognize the name of f
1334
1325
1335
1326
<p>As with <a href="syndata.html#uri">other URIs in CSS</a>, the URI may be partial, in which case it is resolved relative to the location of the style sheet containing the <span class="index-inst" title="@font-face"> @font-face</span>.
1336
1327
1337
-
<p> The <span class="index-def" title="<font-face-name>::definition
1328
+
<p> The locally-installed <span class="index-def" title="<font-face-name>::definition
0 commit comments