|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: fonts.src,v 2.13 1998-02-21 04:19:50 ijacobs Exp $ --> |
| 3 | +<!-- $Id: fonts.src,v 2.14 1998-02-21 04:47:03 clilley Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Fonts</TITLE> |
@@ -129,7 +129,8 @@ selection</a>. |
129 | 129 | cursive companion face to the normal face, but not so cursive as |
130 | 130 | to make it a script face. Oblique is a slanted form of the |
131 | 131 | normal face, and is more commonly used as a companion face to |
132 | | - sans-serif. |
| 132 | + sans-serif. This avoids having to label slightly slanted normal |
| 133 | + faces as oblique, or Greek faces as italic. |
133 | 134 |
|
134 | 135 | <dt><strong><a name="font-variant">Font variant</a></strong> |
135 | 136 |
|
@@ -221,7 +222,19 @@ href="syndata.html#skip">skipped</a></span> and any sequence of |
221 | 222 | whitespace characters inside the font name is converted to a single |
222 | 223 | space. |
223 | 224 |
|
| 225 | +<div class="example"><p>The richer selector syntax of CSS2 may be used to create language-sensitive typography. For example, some Chinese and Japanese characters are unified to have the same Unicode codepoint, although the glyphs are not the same in the two languages. |
224 | 226 |
|
| 227 | +<pre> |
| 228 | + *[lang="ja-jp"] { font: 900 14pt/16pt "Heisei Mincho W9", serif } |
| 229 | + *[lang="zh-tw"] { font: 800 14pt/16.5pt "Li Sung", serif } |
| 230 | +</pre> |
| 231 | +<!-- need to check tw for traditional chinese as used in taiwan --> |
| 232 | + |
| 233 | +<p>The * selects any element and the square brackets select elements |
| 234 | +which have the lang attribute set to Japanes or to Traditional Chinese |
| 235 | +and selects the appriopriate font |
| 236 | + |
| 237 | +</div> |
225 | 238 | <DT><span class="index-def" |
226 | 239 | title="<generic-family>::definition of"><a name="value-def-generic-family" class="value-def"><strong><generic-family></strong></a></span> |
227 | 240 | <DD> |
@@ -340,6 +353,12 @@ fonts with old-style numerals, small-caps numerals, condensed or |
340 | 353 | expanded letters, etc. CSS2 does not offer 'font-variant' values that select |
341 | 354 | those variants. --> |
342 | 355 |
|
| 356 | + <!-- bitstream and apple have proposed a font-condense property, this |
| 357 | + seems a good idea as it keeps normal condensed and expanded faces in |
| 358 | + the same font family instead of creating pseudo families like |
| 359 | + "Helvetica Condensed". DSSSL has a nine point scale (using keywords) |
| 360 | + called font-proportionate-width --> |
| 361 | + |
343 | 362 | <P>Insofar as this property causes text to be transformed to |
344 | 363 | uppercase, the same considerations as for <span |
345 | 364 | class="propinst-text-transform">'text-transform'</span> apply. |
@@ -1160,7 +1179,12 @@ values as the <span class="propinst-font-style">'font-style'</span> |
1160 | 1179 | property, except that a comma-separated list is permitted. |
1161 | 1180 |
|
1162 | 1181 | <!-- Is this paragraph necessary? These names are already in the section |
1163 | | -on the font-style property. -IJ --> |
| 1182 | +on the font-style property. -IJ |
| 1183 | + |
| 1184 | +Yes but the descriptions were not as good as here. I changed the |
| 1185 | +descriptions in the font-style property to match the (commented out) |
| 1186 | +text below CL --> |
| 1187 | + |
1164 | 1188 | <!-- |
1165 | 1189 | The value |
1166 | 1190 | 'normal' indicates that this is the normal face of a font; it is |
@@ -1200,11 +1224,10 @@ exceptions:</p> |
1200 | 1224 |
|
1201 | 1225 | <ol> |
1202 | 1226 | <li>relative keywords (bolder, lighter) are not permitted. |
1203 | | -<li>a comma separated list of values is permitted. |
1204 | | -<li>an additional keyword, 'all' is permitted. |
| 1227 | +<li>a comma separated list of values is permitted, for fonts which contain multiple weights. |
| 1228 | +<li>an additional keyword, 'all' is permitted, which means that the font will match for all possible weights; either because it contains multiple weights, or because that face only has a single weight. |
1205 | 1229 | </ol> |
1206 | 1230 |
|
1207 | | -<!-- What does "all" mean? -IJ --> |
1208 | 1231 |
|
1209 | 1232 | <!-- should values not a multiple of 100 also be allowed? --> |
1210 | 1233 |
|
|
0 commit comments