Skip to content

Commit abb9e18

Browse files
committed
[css2] few more examples, bogus syntax on src still not fixed sorry
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401068
1 parent 010bd00 commit abb9e18

1 file changed

Lines changed: 29 additions & 6 deletions

File tree

css2/fonts.src

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<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 $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Fonts</TITLE>
@@ -129,7 +129,8 @@ selection</a>.
129129
cursive companion face to the normal face, but not so cursive as
130130
to make it a script face. Oblique is a slanted form of the
131131
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.
133134

134135
<dt><strong><a name="font-variant">Font variant</a></strong>
135136

@@ -221,7 +222,19 @@ href="syndata.html#skip">skipped</a></span> and any sequence of
221222
whitespace characters inside the font name is converted to a single
222223
space.
223224

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.
224226

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>
225238
<DT><span class="index-def"
226239
title="&lt;generic-family&gt;::definition of"><a name="value-def-generic-family" class="value-def"><strong>&lt;generic-family&gt;</strong></a></span>
227240
<DD>
@@ -340,6 +353,12 @@ fonts with old-style numerals, small-caps numerals, condensed or
340353
expanded letters, etc. CSS2 does not offer 'font-variant' values that select
341354
those variants. -->
342355

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+
343362
<P>Insofar as this property causes text to be transformed to
344363
uppercase, the same considerations as for <span
345364
class="propinst-text-transform">'text-transform'</span> apply.
@@ -1160,7 +1179,12 @@ values as the <span class="propinst-font-style">'font-style'</span>
11601179
property, except that a comma-separated list is permitted.
11611180

11621181
<!-- 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+
11641188
<!--
11651189
The value
11661190
'normal' indicates that this is the normal face of a font; it is
@@ -1200,11 +1224,10 @@ exceptions:</p>
12001224

12011225
<ol>
12021226
<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.
12051229
</ol>
12061230

1207-
<!-- What does "all" mean? -IJ -->
12081231

12091232
<!-- should values not a multiple of 100 also be allowed? -->
12101233

0 commit comments

Comments
 (0)