|
1 | 1 | <!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: fonts.src,v 1.8 1997-08-14 23:03:21 bbos Exp $ --> |
| 3 | +<!-- $Id: fonts.src,v 1.9 1997-08-15 00:01:10 ian Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Fonts</TITLE> |
|
11 | 11 | <BODY> |
12 | 12 | <H1 align="center">Fonts</H1> |
13 | 13 |
|
14 | | -<!-- A diagram of document character set/font set/glyph relationship? |
15 | | ---> |
16 | | - |
17 | 14 | <P>When a document's text is to be displayed visually, each character |
18 | 15 | (abstract information element) must be mapped to some representation |
19 | 16 | that may be drawn on the screen, paper, etc. A <span class="index-def" |
@@ -837,7 +834,7 @@ document. |
837 | 834 |
|
838 | 835 | <p>Note that if the font Robson Celtic <em>had</em> been installed on |
839 | 836 | the client system, this would cause the UA to construct an |
840 | | -<tt>@font-face</tt> rule for the installed copy as described in the |
| 837 | +@font-face rule for the installed copy as described in the |
841 | 838 | section on the <a href="#algorithm">font matching |
842 | 839 | algorithm</a>. The installed copy would have been matched before the |
843 | 840 | downloadable font in the example above. |
@@ -972,7 +969,7 @@ of absolute lengths is permitted. |
972 | 969 |
|
973 | 970 |
|
974 | 971 | <p>The initial value of 'all' is suitable for scalable fonts, so this |
975 | | -descriptor will only be useful in an <tt>@font-face</tt> for bitmap fonts, |
| 972 | +descriptor will only be useful in an @font-face for bitmap fonts, |
976 | 973 | or for scalable fonts which have hand-tuned bitmaps at specific point |
977 | 974 | sizes. |
978 | 975 |
|
@@ -1499,6 +1496,7 @@ undefined, the UA may use the center baseline. |
1499 | 1496 | baseline</a> of a font. If undefined, the UA may use an approximate |
1500 | 1497 | value such as the ascent.</p> |
1501 | 1498 |
|
| 1499 | + |
1502 | 1500 | <h2><a name="algorithm">Font matching algorithm</a></h2> |
1503 | 1501 |
|
1504 | 1502 | <P>This specification extends the algorithm given in the CSS1 |
@@ -1657,13 +1655,13 @@ the CSS2 properties for each character. |
1657 | 1655 | from a normal font. |
1658 | 1656 | <LI> |
1659 | 1657 | <span class="propinst-font-weight-desc">'font-weight'</span> is matched next, it will never fail. |
1660 | | - (See 'font-weight' below.) |
| 1658 | + (See <span class="propinst-font-weight-desc">'font-weight'</span> below.) |
1661 | 1659 | <LI> |
1662 | 1660 | <span class="propinst-font-size-desc">'font-size'</span> must be matched within a UA-dependent |
1663 | 1661 | margin of tolerance. (Typically, sizes for scalable fonts are rounded to |
1664 | 1662 | the nearest whole pixel, while the tolerance for bitmapped fonts could be |
1665 | 1663 | as large as 20%.) Further computations, e.g. by 'em' values in other properties, |
1666 | | - are based on the 'font-size' value that is used, not the one that is specified. |
| 1664 | + are based on the <span class="propinst-font-size-desc">'font-size'</span> value that is used, not the one that is specified. |
1667 | 1665 | </OL> |
1668 | 1666 |
|
1669 | 1667 | <h3>Examples of font matching</h3> |
@@ -1694,7 +1692,7 @@ name is Alabama Italic.</P> |
1694 | 1692 | The next example defines a family of fonts. A single URL is provided |
1695 | 1693 | for retrieving the font data. This data file will contain multiple |
1696 | 1694 | styles and weights of the named font. Once one of these |
1697 | | -<tt>@font-face</tt> definitions has been dereferenced, the data will |
| 1695 | +@font-face definitions has been dereferenced, the data will |
1698 | 1696 | be in the UA cache for other faces that use the same URL.</P> |
1699 | 1697 |
|
1700 | 1698 | <PRE><STYLE> |
|
0 commit comments