Skip to content

Commit 444eb0e

Browse files
committed
[css2] changes to fonts-stretch and to font made, some other tidying of typos, ciomments added prior to rearrangement of 15.4 font characteristics (not done yet)
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401269
1 parent f020a83 commit 444eb0e

1 file changed

Lines changed: 82 additions & 122 deletions

File tree

css2/fonts.src

Lines changed: 82 additions & 122 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.27 1998-03-17 09:49:03 ijacobs Exp $ -->
3+
<!-- $Id: fonts.src,v 2.28 1998-03-20 04:27:34 clilley Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Fonts</TITLE>
@@ -98,10 +98,7 @@ agent. The obvious way to specify a font is by it's name, a single string which
9898
</div>
9999

100100
<p>Unfortunately, there exists no well-defined and universally
101-
accepted taxonomy for classifying fonts based on their names, and terms that apply to one
102-
font family name may not be appropriate for others. For example, the term
103-
'italic' is commonly used to label slanted text, but slanted text may
104-
also be labeled <EM>Oblique, Slanted, Incline, Cursive</EM> or
101+
accepted taxonomy for classifying fonts based on their names, and terms that apply to one font family name may not be appropriate for others. For example, the term 'italic' is commonly used to label slanted text, but slanted text may also be labeled <EM>Oblique, Slanted, Incline, Cursive</EM> or
105102
<EM>Kursiv</EM>. This lack of systematic naming makes it impossible, in the general case, to generate a modified font face name that differs in a particular way such as being bolder.
106103

107104
<P>Because of this, CSS uses a different model. Fonts are requested not through a single font name but through setting a series of font properties. These property values form the
@@ -356,16 +353,9 @@ with emphasized words (EM) in oblique small-caps:
356353
</div>
357354

358355
<!-- There may be other variants in the font family as well, such as
359-
fonts with old-style numerals, small-caps numerals, condensed or
360-
expanded letters, etc. CSS2 does not offer 'font-variant' values that select
356+
fonts with old-style numerals, small-caps numerals, etc. CSS2 does not offer 'font-variant' values that select
361357
those variants. -->
362358

363-
<!-- bitstream and apple have proposed a font-condense property, this
364-
seems a good idea as it keeps normal condensed and expanded faces in
365-
the same font family instead of creating pseudo families like
366-
"Helvetica Condensed". DSSSL has a nine point scale (using keywords)
367-
called font-proportionate-width -->
368-
369359
<P>Insofar as this property causes text to be transformed to
370360
uppercase, the same considerations as for <span
371361
class="propinst-text-transform">'text-transform'</span> apply.
@@ -473,24 +463,25 @@ may have eight different face weights.
473463
<P>The following two examples show typical mappings.</P>
474464

475465
<div class="html-example">
476-
<P>Assume four weights in the "Example1" family, from lightest to
466+
<P>Assume four weights in the "Rattlesnake" family, from lightest to
477467
darkest: <EM>Regular, Medium, Bold, Heavy.</EM></p>
478468
<TABLE border summary="Example of font-weight mapping">
479469
<CAPTION>First example of font-weight mapping</CAPTION>
470+
<!-- rattlesnake, ostrich and more at the Austin meeting -->
480471
<THEAD>
481472
<TR><TH>Available faces <TH>Assignments <TH>Filling the holes
482473
</THEAD>
483-
<TR><TD>"Example1 Regular" <TD> 400 <TD> 100, 200, 300
484-
<TR><TD>"Example1 Medium" <TD> 500 <TD>&nbsp;
485-
<TR><TD>"Example1 Bold" <TD> 700 <TD> 600
486-
<TR><TD>"Example1 Heavy" <TD> 800 <TD> 900
474+
<TR><TD>"Rattlesnake Regular" <TD> 400 <TD> 100, 200, 300
475+
<TR><TD>"Rattlesnake Medium" <TD> 500 <TD>&nbsp;
476+
<TR><TD>"Rattlesnake Bold" <TD> 700 <TD> 600
477+
<TR><TD>"Rattlesnake Heavy" <TD> 800 <TD> 900
487478
</TABLE>
488479
</div>
489480

490481
<div class="html-example">
491482
<P>Assume six weights in the
492-
"Example2" family: <EM>Book, Medium, Bold, Heavy, Black,
493-
ExtraBlack.</EM> Note that here the user agent
483+
"Ice Prawn" family: <EM>Book, Medium, Bold, Heavy, Black,
484+
ExtraBlack.</EM> Note that in this instance the user agent
494485
has decided <EM>not</EM> to assign a numeric
495486
value to "Example2 ExtraBlack".</p>
496487

@@ -500,12 +491,12 @@ value to "Example2 ExtraBlack".</p>
500491
<THEAD>
501492
<TR><TH>Available faces <TH>Assignments <TH>Filling the holes
502493
</THEAD>
503-
<TR><TD>"Example2 Book" <TD> 400 <TD> 100, 200, 300
504-
<TR><TD>"Example2 Medium" <TD> 500 <TD>&nbsp;
505-
<TR><TD>"Example2 Bold" <TD> 700 <TD> 600
506-
<TR><TD>"Example2 Heavy" <TD> 800 <TD>&nbsp;
507-
<TR><TD>"Example2 Black" <TD> 900 <TD>&nbsp;
508-
<TR><TD>"Example2 ExtraBlack" <TD> (none) <TD>&nbsp;
494+
<TR><TD>"Ice Prawn Book" <TD> 400 <TD> 100, 200, 300
495+
<TR><TD>"Ice Prawn Medium" <TD> 500 <TD>&nbsp;
496+
<TR><TD>"Ice Prawn Bold" <TD> 700 <TD> 600
497+
<TR><TD>"Ice Prawn Heavy" <TD> 800 <TD>&nbsp;
498+
<TR><TD>"Ice Prawn Black" <TD> 900 <TD>&nbsp;
499+
<TR><TD>"Ice Prawn ExtraBlack" <TD> (none) <TD>&nbsp;
509500
</TABLE>
510501
</div>
511502

@@ -514,20 +505,21 @@ value to "Example2 ExtraBlack".</p>
514505
<!-- #include src=properties/font-stretch.srb -->
515506

516507
<P> The <span class="propinst-font-stretch">'font-stretch'</span> property
517-
selects between normal, condensed and extended faces within a font family. Absolute numerical and keyword values have the following equivalent meanings:</p>
518-
519-
<dl><dt>ultra-condensed<dd>100
520-
<dt>extra-condensed<dd>200
521-
<dt>condensed<dd>300
522-
<dt>semi-condensed<dd>400
523-
<dt>normal<dd>500
524-
<dt>semi-expanded<dd>600
525-
<dt>expanded<dd>700
526-
<dt>extra-expanded<dd>800
527-
<dt>ultra-expanded<dd>900
528-
</dl>
508+
selects between normal, condensed and extended faces within a font family. Absolute keyword values have the following ordering, from narrowest to widest :</p>
509+
510+
<ol>
511+
<li>ultra-condensed
512+
<li>extra-condensed
513+
<li>condensed
514+
<li>semi-condensed
515+
<li>normal
516+
<li>semi-expanded
517+
<li>expanded
518+
<li>extra-expanded
519+
<li>ultra-expanded
520+
</ol>
529521

530-
<p>The relative keyword 'wider' sets the value to 100 more than the inherited value (while not increasing it above 900); the relative keyword 'narrower' sets the value to 100 less than the inherited value (while not decreasing it below 100).
522+
<p>The relative keyword 'wider' sets the value to the next more expanded value more than the inherited value (while not increasing it above ultra-expanded); the relative keyword 'narrower' sets the value to the next more condensed value than the inherited value (while not decreasing it below ultra-condensed).
531523
<!-- should this go to next more condensed/expanded face in that family as the computed value? like bolder/lighter -CL -->
532524

533525
<H3><a name="font-size">Font size</a>: the <span
@@ -538,8 +530,8 @@ properties</H3>
538530
<!-- #include src=properties/font-size.srb -->
539531

540532

541-
<P>This property describes the size of the font when set solid. Values have
542-
the following meanings:</p>
533+
<P>This property describes the size of the font when set solid.
534+
Values have the following meanings:</p>
543535

544536
<DL>
545537
<DT><span class="index-def" title="&lt;absolute-size&gt;::definition of">
@@ -629,7 +621,7 @@ font size alone may lead to illegible characters.
629621
<P>For example, the popular font Verdana has a z value of 1.72; in an
630622
instance of Verdana with <span class="propinst-font-size">'font-size'</span> 100 points, the <span class="definst-x-height">x-height</span> is 58
631623
pt (100/58=1.72). For comparison, Times New Roman has a z value of
632-
2.17.
624+
2.17. As the z value increases, a font for a bicameral script becomes less legible at a given point size.
633625

634626
<P>This property allows authors to specify a z value for an element
635627
that preserves the <span class="index-inst" title="x-height"><span
@@ -692,44 +684,9 @@ class="propinst-line-height">'line-height'</span>, and <span
692684
class="propinst-font-family">'font-family'</span>, at the same place
693685
in the style sheet. <!-- but not font-size-adjust or font-stretch -CL --> The syntax of
694686
this property is based on a traditional typographical shorthand
695-
notation to set multiple properties related to fonts.
696-
697-
<P> For a definition of allowed and initial values, see the previously
698-
defined properties.
699-
700-
<P>The following values refer to <span class="index-def" title="system
701-
fonts">system fonts</span>:</p>
702-
703-
<dl>
704-
<dt><strong>caption</strong>
705-
<dd>Used for captioned controls (e.g. buttons, drop-downs, etc.).
706-
<dt><strong>icon</strong>
707-
<dd> Used to label icons.
708-
<dt><strong>menu</strong>
709-
<dd> Used in menus (e.g., dropdown menus and menu lists).
710-
<dt><strong>message-box</strong>
711-
<dd> Used in dialog boxes.
712-
<dt><strong>small-caption</strong>
713-
<dd> Used for labeling small controls.
714-
<dt><strong>status-bar</strong>
715-
<dd> Used in window status bars.
716-
</dl>
717-
718-
<P>System fonts may only be accessed as a whole; that is, the font
719-
family, size, weight, style, etc. are all set at the same time. If no
720-
font with the indicated characteristics exists on a given platform,
721-
the user agent should either intelligently substitute (e.g., a smaller
722-
version of the 'caption' font might be used for the 'smallcaption'
723-
font), or substitute a user agent default font. As for regular fonts,
724-
if, for a system font, any of the individual properties are not part
725-
of the operating system's available user preferences, those properties
726-
should be set to their initial values.
687+
notation to set multiple properties related to fonts.
727688

728-
<P>That is why this property is "almost" a shorthand property: system
729-
fonts can only be specified for this property, not with <span
730-
class="propinst-font-family">'font-family'</span> itself, so <span
731-
class="propinst-font">'font'</span> allows authors to do more than the
732-
sum of its subproperties.</p>
689+
<p>All font related properties are first reset to their initial values, including those listed in the preceeding paragraph plus <span class="propinst-font-stretch">'font-stretch'</span> and <span class="propinst-font-size-adjust">'font-size-adjust'</span>. Then, those properties that are given explicit values in the <span class="propinst-font">'font'</span> shorthand are set to those values. For a definition of allowed and initial values, see the previously defined properties. For reasons of backwards compatibility, it is not possible to set <span class="propinst-font-stretch">'font-stretch'</span> and <span class="propinst-font-size-adjust">'font-size-adjust'</span> to other than their initial values using the <span class="propinst-font">'font'</span> shorthand property; instead, set the individual properties.
733690

734691
<div class="example"><P>
735692
Examples:
@@ -749,7 +706,7 @@ itself.
749706
<P>The first three rules do not specify the <span
750707
class="propinst-font-variant">'font-variant'</span> and <span
751708
class="propinst-font-weight">'font-weight'</span> explicitly, so these
752-
properties receive their initial values ('normal'). The fourth rule
709+
properties receive their initial values ('normal'). Notice that the font family name "new century schoolbook", which contains spaces, is enclosed in quotes. The fourth rule
753710
sets the <span class="propinst-font-weight">'font-weight'</span> to
754711
'bold', the <span class="propinst-font-style">'font-style'</span> to
755712
'italic', and implicitly sets <span
@@ -764,16 +721,18 @@ size) and the <span class="propinst-font-family">'font-family'</span>
764721
('fantasy'). It follows that the keyword 'normal' applies to the two
765722
remaining properties: <span
766723
class="propinst-font-style">'font-style'</span> and <span
767-
class="propinst-font-weight">'font-weight'</span>.
768-
724+
class="propinst-font-weight">'font-weight'</span>. All of these examples set <span
725+
class="propinst-font-variant">'font-variant'</span> and <span
726+
class="propinst-font-weight">'font-weight'</span> to their initial values.
769727
</div>
770728

729+
771730
<P>The following values refer to <span class="index-def" title="system
772731
fonts">system fonts</span>:</p>
773732

774733
<dl>
775-
<dt><strong>caption</strong>
776-
<dd>Used for (captioned controls (e.g. buttons, drop-downs, etc.).
734+
<dt><strong>caption</strong><!-- strong?? you mean like, bold? -->
735+
<dd>Used for captioned controls (e.g. buttons, drop-downs, etc.).
777736
<dt><strong>icon</strong>
778737
<dd> Used to label icons.
779738
<dt><strong>menu</strong>
@@ -786,13 +745,22 @@ fonts">system fonts</span>:</p>
786745
<dd> Used in window status bars.
787746
</dl>
788747

789-
<P>System fonts can only be accessed as a whole; that is, the font
790-
family, size, weight, style, etc. are all set at the same time from
791-
the values used by that system font. These values may then be altered
792-
individually if desired. As for regular fonts, if, for a system font,
793-
any of the individual properties are not part of the operating
794-
system's available user preferences, those properties should be set to
795-
their initial values.
748+
<P>System fonts may only be accessed as a whole; that is, the font
749+
family, size, weight, style, etc. are all set at the same time.These values may then be altered individually if desired. If no
750+
font with the indicated characteristics exists on a given platform,
751+
the user agent should either intelligently substitute (e.g., a smaller
752+
version of the 'caption' font might be used for the 'smallcaption'
753+
font), or substitute a user agent default font. As for regular fonts,
754+
if, for a system font, any of the individual properties are not part
755+
of the operating system's available user preferences, those properties
756+
should be set to their initial values.
757+
758+
<P>That is why this property is "almost" a shorthand property: system
759+
fonts can only be specified with this property, not with <span
760+
class="propinst-font-family">'font-family'</span> itself, so <span
761+
class="propinst-font">'font'</span> allows authors to do more than the
762+
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>
763+
<!-- strange glitch, the last two paragraphs ocurred twice in slightly different forms - merged and the spare copy deleted -CL -->
796764

797765
<div class="example">
798766
<p>Example:
@@ -829,9 +797,6 @@ a smaller version of the 'caption' font might be used for the
829797
'smallcaption' font), or substitute a user agent default font.
830798

831799

832-
833-
834-
835800
<h3><a name="generic-font-families">Generic font families</a></h3>
836801

837802
<p>Generic font families are a fallback mechanism, a means of
@@ -1217,8 +1182,7 @@ class="propinst-font-variant">'font-variant'</span> property except
12171182
that a comma-separated list is permitted.
12181183

12191184
<div class="note"><P>
1220-
<em><strong>Note.</strong>
1221-
Cyrillic <i>pryamo&#301;</i>
1185+
<em><strong>Note.</strong>Cyrillic <i>pryamo&#301;</i>
12221186
faces may be labeled with a <span
12231187
class="descinst-font-variant">'font-variant'</span>
12241188
of small-caps, which will give better consistency with Latin faces
@@ -1230,7 +1194,7 @@ same reason).
12301194

12311195
<!-- #include src=descriptors/font-stretch.srb -->
12321196

1233-
<p>This is the CSS indication of which of the condensed or expanded nature of the font. It takes the same values as the <span class="propinst-font-stretch">'font-stretch'</span> property except that:</p>
1197+
<p>This is the CSS indication of the condensed or expanded nature of the face relative to others in the same font family. It takes the same values as the <span class="propinst-font-stretch">'font-stretch'</span> property except that:</p>
12341198

12351199
<ul><li>relative keywords (wider, narrower) are not permitted
12361200
<li>a comma-separated list is permitted
@@ -1251,8 +1215,6 @@ exceptions:</p>
12511215
</ol>
12521216

12531217

1254-
<!-- should values not a multiple of 100 also be allowed? -->
1255-
12561218
<!-- #include src=descriptors/font-size.srb -->
12571219

12581220
<p>This is the descriptor for the sizes provided by this font. Only <a
@@ -1264,11 +1226,7 @@ of absolute lengths is permitted.
12641226

12651227

12661228
<p>The initial value of 'all' is suitable for scalable fonts, so this
1267-
descriptor will only be useful in an @font-face for bitmap fonts,
1268-
or for scalable fonts which have hand-tuned bitmaps at specific point
1269-
sizes.
1270-
1271-
<!-- how to indicate tuned bitmaps at certain point sizes? -->
1229+
descriptor will only be useful in an @font-face for bitmap fonts.
12721230

12731231

12741232
<H3><A NAME="dataqual">Descriptors for Font Data Qualification</a>: <span
@@ -1281,8 +1239,8 @@ sufficient glyphs to render a particular character.
12811239

12821240
<!-- #include src=descriptors/unicode-range.srb -->
12831241

1284-
<P>This is the descriptor for the range of ISO 10646 characters
1285-
covered by the font. Since this is sparse (most fonts do not cover
1242+
<P>This is the descriptor for the <!-- need xref to syndata for unicode range --> range of ISO 10646 characters
1243+
covered by the font. <!-- move this part to characteristics from here down -->Since this is sparse (most fonts do not cover
12861244
the whole of ISO 10646) this descriptor lists blocks or ranges which
12871245
do have <em>some</em> coverage (no promise is made of complete
12881246
coverage). This method is extensible to future allocation of
@@ -1293,6 +1251,8 @@ invalidating existing content.
12931251
are expressed using hexadecimal numbers prefixed by "U+",
12941252
corresponding to character code positions in ISO 10646 ([[ISO10646]]).
12951253

1254+
<!--- stop here, rest is CSS syntax so belongs here -->
1255+
12961256
<P>For example, <tt>U+05D1</tt> is the ISO 10646
12971257
character 'Hebrew letter bet'. For values outside the Basic
12981258
Multilingual Plane (BMP), additional leading digits corresponding to
@@ -1407,11 +1367,11 @@ downloadable or locally installed.
14071367

14081368
<!-- #include src=descriptors/src.srb -->
14091369

1410-
<p>This is a prioritized, comma-separated list of URIs and/or locally
1370+
<p>This is a <!-- where is the font characteristic --> prioritized, comma-separated list of URIs and/or locally
14111371
installed font face names. The URI points to the font data itself.
1412-
This is required if the WebFont is to be retrieved. The font resource
1413-
may be a subset of the source font, for example it may contain only the glyphs needed for the current page of for a set of pages.
1414-
1372+
This is required if the WebFont is to be downloaded. The font resource
1373+
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.
1374+
<!-- move some of this discussion to characteristics section -->
14151375

14161376
<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>.
14171377

@@ -1420,18 +1380,18 @@ may be a subset of the source font, for example it may contain only the glyphs n
14201380
<p>The format contains a comma-separated list of strings
14211381
that denote well-known font formats. The user agent will recognize the name of font formats that it supports and will avoid downloading fonts in formats that it does not recognize.
14221382

1423-
<p>An initial list of format strings likely to be used by implementations on various platforms is:</p>
1424-
1425-
<dl>
1426-
<dt>"truedoc-pfr"<dd>TrueDoc&trade; Portable Font Resource (.pfr)
1427-
<dt>"embedded-opentype"<dd>Embedded OpenType (.eot)
1428-
<dt>"type-1"<dd>PostScript&trade; Type 1 (.pfb, .pfa)
1429-
<dt>"truetype"<dd>TrueType (.ttf)
1430-
<dt>"opentype"<dd>OpenType (.ttf), including TrueType Open.
1431-
<dt>"truetype-gx"<dd>TrueType with GX extensions
1432-
<dt>"speedo"<dd>Speedo
1433-
<dt>"intellifont"<dd>Intellifont
1434-
</dl>
1383+
<p>An initial list of format strings defined by this specification and representing formats likely to be used by implementations on various platforms is:</p>
1384+
1385+
<table>
1386+
<tr><td>"truedoc-pfr"<td>TrueDoc&trade; Portable Font Resource (.pfr)
1387+
<tr><td>"embedded-opentype"<td>Embedded OpenType (.eot)
1388+
<tr><td>"type-1"<td>PostScript&trade; Type 1 (.pfb, .pfa)
1389+
<tr><td>"truetype"<td>TrueType (.ttf)
1390+
<tr><td>"opentype"<td>OpenType (.ttf), including TrueType Open.
1391+
<tr><td>"truetype-gx"<td>TrueType with GX extensions
1392+
<tr><td>"speedo"<td>Speedo
1393+
<tr><td>"intellifont"<td>Intellifont
1394+
</table>
14351395

14361396

14371397
<p> The <span class="index-def" title="&lt;font-face-name&gt;::definition

0 commit comments

Comments
 (0)