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
[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
@@ -98,10 +98,7 @@ agent. The obvious way to specify a font is by it's name, a single string which
98
98
</div>
99
99
100
100
<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
105
102
<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.
106
103
107
104
<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:
356
353
</div>
357
354
358
355
<!-- 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
361
357
those variants. -->
362
358
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
-
369
359
<P>Insofar as this property causes text to be transformed to
@@ -514,20 +505,21 @@ value to "Example2 ExtraBlack".</p>
514
505
<!-- #include src=properties/font-stretch.srb -->
515
506
516
507
<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>
529
521
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).
531
523
<!-- should this go to next more condensed/expanded face in that family as the computed value? like bolder/lighter -CL -->
532
524
533
525
<H3><a name="font-size">Font size</a>: the <span
@@ -538,8 +530,8 @@ properties</H3>
538
530
<!-- #include src=properties/font-size.srb -->
539
531
540
532
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.
@@ -629,7 +621,7 @@ font size alone may lead to illegible characters.
629
621
<P>For example, the popular font Verdana has a z value of 1.72; in an
630
622
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
631
623
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.
633
625
634
626
<P>This property allows authors to specify a z value for an element
635
627
that preserves the <span class="index-inst" title="x-height"><span
@@ -692,44 +684,9 @@ class="propinst-line-height">'line-height'</span>, and <span
692
684
class="propinst-font-family">'font-family'</span>, at the same place
693
685
in the style sheet. <!-- but not font-size-adjust or font-stretch -CL --> The syntax of
694
686
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.
727
688
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.
733
690
734
691
<div class="example"><P>
735
692
Examples:
@@ -749,7 +706,7 @@ itself.
749
706
<P>The first three rules do not specify the <span
750
707
class="propinst-font-variant">'font-variant'</span> and <span
751
708
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
753
710
sets the <span class="propinst-font-weight">'font-weight'</span> to
754
711
'bold', the <span class="propinst-font-style">'font-style'</span> to
755
712
'italic', and implicitly sets <span
@@ -764,16 +721,18 @@ size) and the <span class="propinst-font-family">'font-family'</span>
764
721
('fantasy'). It follows that the keyword 'normal' applies to the two
765
722
remaining properties: <span
766
723
class="propinst-font-style">'font-style'</span> and <span
<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 -->
796
764
797
765
<div class="example">
798
766
<p>Example:
@@ -829,9 +797,6 @@ a smaller version of the 'caption' font might be used for the
829
797
'smallcaption' font), or substitute a user agent default font.
830
798
831
799
832
-
833
-
834
-
835
800
<h3><a name="generic-font-families">Generic font families</a></h3>
836
801
837
802
<p>Generic font families are a fallback mechanism, a means of
<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>
1234
1198
1235
1199
<ul><li>relative keywords (wider, narrower) are not permitted
1236
1200
<li>a comma-separated list is permitted
@@ -1251,8 +1215,6 @@ exceptions:</p>
1251
1215
</ol>
1252
1216
1253
1217
1254
-
<!-- should values not a multiple of 100 also be allowed? -->
1255
-
1256
1218
<!-- #include src=descriptors/font-size.srb -->
1257
1219
1258
1220
<p>This is the descriptor for the sizes provided by this font. Only <a
@@ -1264,11 +1226,7 @@ of absolute lengths is permitted.
1264
1226
1265
1227
1266
1228
<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.
1272
1230
1273
1231
1274
1232
<H3><A NAME="dataqual">Descriptors for Font Data Qualification</a>: <span
@@ -1281,8 +1239,8 @@ sufficient glyphs to render a particular character.
are expressed using hexadecimal numbers prefixed by "U+",
1294
1252
corresponding to character code positions in ISO 10646 ([[ISO10646]]).
1295
1253
1254
+
<!--- stop here, rest is CSS syntax so belongs here -->
1255
+
1296
1256
<P>For example, <tt>U+05D1</tt> is the ISO 10646
1297
1257
character 'Hebrew letter bet'. For values outside the Basic
1298
1258
Multilingual Plane (BMP), additional leading digits corresponding to
@@ -1407,11 +1367,11 @@ downloadable or locally installed.
1407
1367
1408
1368
<!-- #include src=descriptors/src.srb -->
1409
1369
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
1411
1371
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 -->
1415
1375
1416
1376
<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>.
1417
1377
@@ -1420,18 +1380,18 @@ may be a subset of the source font, for example it may contain only the glyphs n
1420
1380
<p>The format contains a comma-separated list of strings
1421
1381
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.
1422
1382
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™ Portable Font Resource (.pfr)
<dt>"type-1"<dd>PostScript™ 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™ Portable Font Resource (.pfr)
0 commit comments