Skip to content

Commit 2063b0d

Browse files
committed
[css2] descriptions of font-* properties rewritten to show theyt are describing desired apearance not describing fonts (which may be used to produce the desired apprearance). Examples added for system fonts , and clarifying text
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401050
1 parent f2035cb commit 2063b0d

1 file changed

Lines changed: 144 additions & 90 deletions

File tree

css2/fonts.src

Lines changed: 144 additions & 90 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.11 1998-02-21 00:11:19 ijacobs Exp $ -->
3+
<!-- $Id: fonts.src,v 2.12 1998-02-21 03:48:39 clilley Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Fonts</TITLE>
@@ -109,32 +109,49 @@ selection</a>.
109109
<dl>
110110
<dt><strong><a name="font-family">Font family</a></strong>
111111

112-
<dd>A <span class="index-def" title="font family"> font family</span>
113-
is a group of fonts that resemble one another. One member of the
114-
family may be italic, another bold, another bold and italic,
115-
etc. Examples of font family names include Helvetica, New Century
116-
Schoolbook, and Kyokasho ICA L. Font families may be grouped into different
117-
categories: those with or without serifs, those whose characters are
118-
or are not proportionally spaced, those that resemble handwriting,
119-
those that are fantasy fonts, etc.
120-
121-
<!-- Is it necessary to say this? "Font family names are not restricted to
122-
Latin characters." -->
123-
124-
<dt><strong><a name="font-style">Font style</a></strong>
125-
<dd>The font style specifies whether the specified font is normal,
126-
italic, or oblique (italic and oblique fonts are similar,
127-
but not the same, especially for fonts with serifs).
112+
<dd>A <span class="index-def" title="font family"> font
113+
family</span> is a group of fonts that resemble one another and
114+
are designed to be used in combination. One member of the
115+
family may be italic, another bold, another bold and italic,
116+
etc. Examples of font family names include Helvetica, New
117+
Century Schoolbook, and Kyokasho ICA L. Font family names are
118+
not restricted to Latin characters. Font families may be
119+
grouped into different categories: those with or without serifs,
120+
those whose characters are or are not proportionally spaced,
121+
those that resemble handwriting, those that are fantasy fonts,
122+
etc.
123+
124+
125+
<dt><strong><a name="font-style">Font style</a></strong>
126+
127+
<dd>The font style specifies whether the text is to be rendered
128+
using a normal, italic, or oblique face. Italic is a more
129+
cursive companion face to the normal face, but not so cursive as
130+
to make it a script face. Oblique is a slanted form of the
131+
normal face, and is more commonly used as a companion face to
132+
sans-serif.
133+
128134
<dt><strong><a name="font-variant">Font variant</a></strong>
129-
<dd>The font variant indicates whether the font contains normal upper
130-
and lowercase characters or whether it contains small-caps
131-
characters.
135+
136+
<dd>The font variant indicates whether the text is to be
137+
rendered using the normal glyphs for lowercase characters or
138+
using small-caps glyphs for lowercase characters. (A particular
139+
font may contain only normal, only small-caps, or both types of
140+
glyph)
141+
132142
<dt><strong><a name="font-weight">Font weight</a></strong>
133-
<dd>The font weight refers to the boldness or lightness of a font's
134-
glyphs.
143+
144+
<dd>The font weight refers to the boldness or lightness of a font's
145+
glyphs relative to others in the same family.
146+
135147
<dt><strong><a name="font-size">Font size</a></strong>
136-
<dd>The font size refers to the size of the font.
137-
<!-- Be more specific about size -IJ -->
148+
149+
<dd>The font size refers to the size of the font from baseline
150+
to baseline, when set solid (in CSS terms, this is when the
151+
<span class="propinst-font-size">'font-size'</span> and <span
152+
class="propinst-line-height">'line-height'</span> properties
153+
have the same value).
154+
138155
</dl>
139156

140157

@@ -146,8 +163,11 @@ refer to the font size of the parent element. Please consult the
146163
section on <a href="./syndata.html#length-units">length units</a> for
147164
more information.
148165

149-
<P>For information about the classification of fonts in general,
150-
please consult the section on <a
166+
<p>The font properties in CSS are used to describe the desired
167+
appearance of text in the document. The font descriptors, in contrast,
168+
are used to describe the characteristics of fonts, so that a suitable
169+
font can be chosen to create the desired appearance. For information
170+
about the classification of fonts, please consult the section on <a
151171
href="#font-descriptors">font descriptors</a>.
152172

153173

@@ -159,9 +179,10 @@ class="propinst-font-family">'font-family'</span></H3>
159179
<P>This property specifies a prioritized list of font family names
160180
and/or generic family names. To deal with the problem that a single
161181
font may not contain glyphs to display all the characters in a
162-
document, this property allows authors to specify a list of fonts, all
163-
of the same style and size, that are tried in sequence to see if they
164-
contain a glyph for a certain character. This list is called a <span
182+
document, or that not all fonts are available on all systems, this
183+
property allows authors to specify a list of fonts, all of the same
184+
style and size, that are tried in sequence to see if they contain a
185+
glyph for a certain character. This list is called a <span
165186
class="index-def" title="font set"><dfn>font set</dfn></span>.
166187

167188
<div class="example"><P>
@@ -281,9 +302,9 @@ However, emphasized text (EM) within an H1 will appear in a normal face.
281302

282303
<!-- #include src=properties/font-variant.srb -->
283304

284-
<P>In a small-caps font, the lowercase letters look similar to the
285-
uppercase ones, but in a smaller size and with slightly different
286-
proportions. The <span
305+
<P>In a small-caps font, the glyphs for lowercase letters look similar
306+
to the uppercase ones, but in a smaller size and with slightly
307+
different proportions. The <span
287308
class="propinst-font-variant">'font-variant'</span> property selects
288309
that font. This property has no visible effect for scripts which are
289310
unicameral (having only one case). Values have the following
@@ -314,11 +335,10 @@ with emphasized words (EM) in oblique small-caps:
314335
</PRE>
315336
</div>
316337

317-
<P> There may be other variants in the font family as well, such as
338+
<!-- There may be other variants in the font family as well, such as
318339
fonts with old-style numerals, small-caps numerals, condensed or
319-
expanded letters, etc. CSS2 does offer <span
320-
class="propinst-font-variant">'font-variant'</span> values that select
321-
those variants.
340+
expanded letters, etc. CSS2 does not offer 'font-variant' values that select
341+
those variants. -->
322342

323343
<P>Insofar as this property causes text to be transformed to
324344
uppercase, the same considerations as for <span
@@ -360,7 +380,8 @@ the next lighter numerical value (and keeps the font unchanged).
360380
</PRE>
361381
</div>
362382

363-
<!-- I added the above example, please verify -IJ -->
383+
<!-- I added the above example, please verify IJ
384+
seems fine, CL -->
364385

365386
<P>Child elements inherit the <a href="cascade.html#computed-value">
366387
computed value</a> of the weight.
@@ -482,9 +503,10 @@ are:
482503

483504
<P> [ xx-small | x-small | small | medium | large | x-large | xx-large ]
484505

485-
<P>On a computer screen a scaling factor of 1.5 is suggested
486-
between adjacent indexes; if the 'medium' font is 10pt, the
487-
'large' font could be 15pt. Different media may need different
506+
<P>On a computer screen a scaling factor of 1.2 <!-- changed from
507+
1.5 which was widely criticised as far too much, CL -->is
508+
suggested between adjacent indexes; if the 'medium' font is 10pt,
509+
the 'large' font could be 12pt. Different media may need different
488510
scaling factors. Also, the user agent should take the quality and
489511
availability of fonts into account when computing the table. The
490512
table may be different from one font family to another.
@@ -522,8 +544,10 @@ of"><strong>&lt;relative-size&gt;</strong></span>
522544
<P>The <a href="cascade.html#computed-value">computed value</a> of
523545
this property may differ from the <a
524546
href="cascade.html#specified-value">specified value</a> according to
525-
context. For example, inside a virtual reality scene the user agent
526-
may compute a different size because of perspective distortion.</P>
547+
context. <!-- bad example: For example, inside a virtual reality scene
548+
the user agent may compute a different size because of perspective
549+
distortion.-->
550+
527551

528552
<div class="example"><P>
529553
<P> Examples:
@@ -538,16 +562,17 @@ may compute a different size because of perspective distortion.</P>
538562

539563
<!-- #include src=properties/font-size-adjust.srb -->
540564

541-
<P>The subjective apparent size (and general character of a font on
542-
screen) is less dependent on its <a
565+
<P>In bicameral scripts, the subjective apparent size (and general
566+
character of a font on screen) is less dependent on its <a
543567
href="syndata.html#em-height">em-height</a> than on the size of its <a
544-
href="syndata.html#x-height">x-height</a>, or, more usefully, on its
545-
<span class="index-def" title="z value"><dfn>z value</dfn></span>. The
546-
lower the z value, the more likely it is that a font at smaller em sizes
547-
will be legible. Inversely, faces with a higher z value will become
548-
illegible more rapidly below a given threshold size than faces with a
549-
lower z value. Straightforward font substitution that relies on em- or
550-
x-height alone may lead to illegible characters.
568+
href="syndata.html#x-height">x-height</a>, or, more usefully, on the
569+
ratio of these two values, called the <span class="index-def" title="z
570+
value"><dfn>z value</dfn></span> (x-height divided by em-height. The
571+
lower the z value, the more likely it is that a font at smaller em
572+
sizes will be legible. Inversely, faces with a higher z value will
573+
become illegible more rapidly below a given threshold size than faces
574+
with a lower z value. Straightforward font substitution that relies on
575+
em- or x-height alone may lead to illegible characters.
551576

552577
<P>For example, the popular font Verdana has a z value of 1.72; in an
553578
instance of Verdana at 100 points (<a
@@ -584,7 +609,7 @@ according to the following formula:
584609
</dl>
585610

586611
<P>The first image below shows several typefaces as rasterized on a
587-
Macintosh at 12 point, together with their z values. No matter what
612+
Macintosh at 12-point, together with their z values. No matter what
588613
the typographical family (or nominal base size, unit, or platform),
589614
faces with lower z values look bigger than those with higher z values.
590615
Faces with very high z values are illegible at the size shown.</p>
@@ -594,7 +619,7 @@ Faces with very high z values are illegible at the size shown.</p>
594619
<P>The next image shows the results of <span
595620
class="propinst-font-size-adjust">'font-size-adjust'</span> with the
596621
fonts shown in the previous image. These fonts' em sizes range all the
597-
way up to '25pt', but appear subjectively to be about as large as
622+
way up to 25-point, but appear subjectively to be about as large as
598623
12-point Verdana, whose z value served as the base for scaling. As
599624
adjusted, the legibility characteristics of these faces on screen are
600625
nearly linear across faces. Note that <span
@@ -615,42 +640,13 @@ class="propinst-font-weight">'font-weight'</span>, <span
615640
class="propinst-font-size">'font-size'</span>, <span
616641
class="propinst-line-height">'line-height'</span>, and <span
617642
class="propinst-font-family">'font-family'</span>, at the same place
618-
in the style sheet. The syntax of this property is based on a
619-
traditional typographical shorthand notation to set multiple
620-
properties related to fonts.
643+
in the style sheet. <!-- but not font-size-adjust --> The syntax of
644+
this property is based on a traditional typographical shorthand
645+
notation to set multiple properties related to fonts.
621646

622647
<P> For a definition of allowed and initial values, see the previously
623648
defined properties. A sub-property for which no value is given
624-
takes its initial value.
625-
626-
<P>The following values refer to <span class="index-def" title="system
627-
fonts">system fonts</span>:</p>
628-
629-
<dl>
630-
<dt><strong>caption</strong>
631-
<dd>Used for (captioned controls (e.g. buttons, drop-downs, etc.).
632-
<dt><strong>icon</strong>
633-
<dd> Used to label icons.
634-
<dt><strong>menu</strong>
635-
<dd> Used in menus (e.g., dropdown menus and menu lists).
636-
<dt><strong>message-box</strong>
637-
<dd> Used in dialog boxes.
638-
<dt><strong>small-caption</strong>
639-
<dd> Used for labeling small controls.
640-
<dt><strong>status-bar</strong>
641-
<dd> Used in window status bars.
642-
</dl>
643-
644-
<P>System fonts may only be accessed as a whole; that is, the font
645-
family, size, weight, style, etc. are all set at the same time. If no
646-
font with the indicated characteristics exists on a given platform,
647-
the user agent should either intelligently substitute (e.g., a smaller
648-
version of the 'caption' font might be used for the 'smallcaption'
649-
font), or substitute a user agent default font. As for regular fonts,
650-
if, for a system font, any of the individual properties are not part
651-
of the operating system's available user preferences, those properties
652-
should be set to their initial values.
653-
649+
is reset to its initial value, <em>not</em> the inherited value.
654650

655651
<div class="example"><P>
656652
Examples:
@@ -660,8 +656,6 @@ Examples:
660656
P { font: x-large/110% "new century schoolbook", serif }
661657
P { font: bold italic large Palatino, serif }
662658
P { font: normal small-caps 120%/120% fantasy }
663-
P { font: messagebox }
664-
INPUT.small { font: smallcaption }
665659
</PRE>
666660

667661
<P> In the second rule, the font size percentage value ('80%') refers
@@ -689,10 +683,70 @@ remaining properties: <span
689683
class="propinst-font-style">'font-style'</span> and <span
690684
class="propinst-font-weight">'font-weight'</span>.
691685

692-
<P>The sixth and seventh rules set the font properties to the
693-
appropriate values for these elements in the user's environment.
694686
</div>
695687

688+
<P>The following values refer to <span class="index-def" title="system
689+
fonts">system fonts</span>:</p>
690+
691+
<dl>
692+
<dt><strong>caption</strong>
693+
<dd>Used for (captioned controls (e.g. buttons, drop-downs, etc.).
694+
<dt><strong>icon</strong>
695+
<dd> Used to label icons.
696+
<dt><strong>menu</strong>
697+
<dd> Used in menus (e.g., dropdown menus and menu lists).
698+
<dt><strong>message-box</strong>
699+
<dd> Used in dialog boxes.
700+
<dt><strong>small-caption</strong>
701+
<dd> Used for labeling small controls.
702+
<dt><strong>status-bar</strong>
703+
<dd> Used in window status bars.
704+
</dl>
705+
706+
<P>System fonts can only be accessed as a whole; that is, the font
707+
family, size, weight, style, etc. are all set at the same time from
708+
the values used by that system font. These values may then be altered
709+
individually if desired. As for regular fonts, if, for a system font,
710+
any of the individual properties are not part of the operating
711+
system's available user preferences, those properties should be set to
712+
their initial values.
713+
714+
<div class="example">
715+
<p>Example:
716+
717+
<pre>
718+
BUTTON { font: 300 italic 1.3em/1.7em "FB Armada", sans-serif }
719+
BUTTON P { font: menu }
720+
BUTTON P EM { font-weight: bolder }
721+
<pre>
722+
723+
<p>If the font used for dropdown menus on a particular system
724+
happended to be 9-point Charcoal, with a weight of 600, then P
725+
elements which were descendents of BUTTON would be displayed as if
726+
this rule were in effect (the values for the remaining properties
727+
being taken from the initial values):
728+
729+
<pre>
730+
BUTTON P {
731+
font-style: normal;
732+
font-variant: normal;
733+
font-weight: 600;
734+
font-size: 9pt;
735+
line-height: normal;
736+
font-family: Charcoal
737+
} stuff
738+
739+
</div>
740+
741+
742+
<p>If no font with the indicated characteristics exists on a given
743+
platform, the user agent should either intelligently substitute (e.g.,
744+
a smaller version of the 'caption' font might be used for the
745+
'smallcaption' font), or substitute a user agent default font.
746+
747+
748+
749+
696750

697751
<h3><a name="generic-font-families">Generic font families</a></h3>
698752

0 commit comments

Comments
 (0)