11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: fonts.src,v 1.29 1997-12-28 23:26:27 ijacobs Exp $ -->
3+ <!-- $Id: fonts.src,v 1.30 1997-12-29 22:02:44 ijacobs Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Fonts</TITLE>
@@ -206,13 +206,21 @@ title="<generic-family>::definition of"><a name="value-def-generic-family"
206206
207207<P> Font names containing whitespace should be quoted.
208208
209- <div class="example"><P>
209+ <div class="html- example"><P>
210210For example:
211211
212212<PRE>
213- BODY { font-family: "new century schoolbook", serif }
214-
213+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
214+ <HTML>
215+ <HEAD>
216+ <STYLE type="text/css">
217+ BODY { font-family: "new century schoolbook", serif }
218+ </STYLE>
219+ </HEAD>
215220 <BODY style="font-family: 'My own font', fantasy">
221+ <P>What's up, Doc?
222+ </BODY>
223+ </HTML>
216224</PRE>
217225</div>
218226
@@ -316,7 +324,8 @@ with font names and a numerical scale was therefore chosen for the
316324
317325<P> The 'bolder' and 'lighter' values select font weights that are
318326relative to the weight inherited from the parent:
319- <PRE>
327+
328+ <PRE>
320329 STRONG { font-weight: bolder }
321330</PRE>
322331</div>
@@ -820,11 +829,12 @@ apply to, or whether the values are inherited by child elements.
820829<P>The available font descriptors are described in later sections of
821830this specification.
822831
823- <div class="example"><P>
832+ <div class="html- example"><P>
824833<p>For example, here the font 'Robson Celtic' is defined and
825834referenced in a style sheet contained in an HTML document.
826835
827- <PRE><HTML>
836+ <PRE>
837+ <HTML>
828838 <HEAD>
829839 <TITLE>Font test</TITLE>
830840 <STYLE TYPE="text/css" MEDIA="screen, print">
@@ -1937,7 +1947,7 @@ that the weight will also match any request in the
19371947range 300 to 500). The font family is Alabama and the adorned font
19381948name is Alabama Italic.</P>
19391949
1940- <PRE><STYLE>
1950+ <PRE>
19411951 @font-face {
19421952 src: local(Alabama Italic),
19431953 url(http://www.fonts.org/A/alabama-italic) format(truetype);
@@ -1946,7 +1956,7 @@ name is Alabama Italic.</P>
19461956 font-weight: 300, 400, 500;
19471957 font-style: italic, oblique;
19481958 }
1949- </STYLE> </PRE>
1959+ </PRE>
19501960</div>
19511961
19521962<div class="example"><P>
@@ -1956,7 +1966,7 @@ styles and weights of the named font. Once one of these
19561966@font-face definitions has been dereferenced, the data will
19571967be in the UA cache for other faces that use the same URI.</P>
19581968
1959- <PRE><STYLE>
1969+ <PRE>
19601970 @font-face {
19611971 src: local(Helvetica Medium),
19621972 url(http://www.fonts.org/sans/Helvetica_family) format(truedoc);
@@ -1970,7 +1980,7 @@ be in the UA cache for other faces that use the same URI.</P>
19701980 font-style: oblique;
19711981 slope: -18
19721982 }
1973- </STYLE> </PRE>
1983+ </PRE>
19741984</div>
19751985
19761986<div class="example"><P>
@@ -1980,7 +1990,7 @@ src descriptor to allow locally installed versions to be preferentially
19801990used if available. A fourth rule points to a font with the same coverage,
19811991but contained in a single resource.
19821992
1983- <PRE><STYLE>
1993+ <PRE>
19841994 @font-face {
19851995 font-family: Excelsior;
19861996 src: local(Excelsior Roman), url(http://site/er) format(intellifont);
@@ -2000,8 +2010,7 @@ but contained in a single resource.
20002010 font-family: Excelsior;
20012011 src: url(http://site/excels) format(truedoc);
20022012 unicode-range: U+??,U+100-220,U+4??;
2003-
2004- </STYLE></PRE>
2013+ </PRE>
20052014</div>
20062015
20072016<div class="example"><P>
@@ -2011,7 +2020,7 @@ a wide variety of serif fonts that might exist on various
20112020platforms. No metrics are given since these vary between the possible
20122021alternatives.
20132022
2014- <PRE><STYLE>
2023+ <PRE>
20152024 @font-face {
20162025 src: local(Palatino),
20172026 local(Times New Roman),
@@ -2024,7 +2033,7 @@ alternatives.
20242033 font-variant: normal;
20252034 font-size: all
20262035 }
2027- </STYLE> </PRE>
2036+ </PRE>
20282037</div>
20292038
20302039</BODY>
0 commit comments