@@ -1964,101 +1964,101 @@ Font property descriptors: the 'font-style!!descriptor', 'font-weight!!descripto
19641964
19651965
19661966
1967- These descriptors define the characteristics of a font face
1968- and are used in the process of matching styles to specific faces.
1969- For a font family defined with several ''@font-face'' rules,
1970- user agents can either download all faces in the family
1971- or use these descriptors to selectively download font faces that match actual styles used in document.
1972- The meaning of the values for these descriptors
1973- are the same as those for the corresponding font properties
1974- except that relative keywords are not allowed,
1975- ''bolder'' and ''lighter'' .
1976- If these descriptors are omitted,
1977- initial values are assumed.
1978- If specified values are out of range
1979- of the accepted values of the property of the same name,
1980- the descriptor is treated as a parse error.
1981-
1982- Ranges are accepted in these three descriptors in place of a single value.
1983- Where a single value is specified,
1984- it has the same meaning as a range with identical startpoint and endpoint.
1985- User agents must swap the computed value of the startpoint and endpoint of the range
1986- in order to forbid decreasing ranges.
1987- Both endpoints are inclusive.
1988- The ranges are used in the <a href="#font-matching-algorithm">Font Matching Algorithm</a> below.
1967+ These descriptors define the characteristics of a font face
1968+ and are used in the process of matching styles to specific faces.
1969+ For a font family defined with several ''@font-face'' rules,
1970+ user agents can either download all faces in the family
1971+ or use these descriptors to selectively download font faces that match actual styles used in document.
1972+ The meaning of the values for these descriptors
1973+ are the same as those for the corresponding font properties
1974+ except that relative keywords are not allowed,
1975+ ''bolder'' and ''lighter'' .
1976+ If these descriptors are omitted,
1977+ initial values are assumed.
1978+ If specified values are out of range
1979+ of the accepted values of the property of the same name,
1980+ the descriptor is treated as a parse error.
1981+
1982+ Ranges are accepted in these three descriptors in place of a single value.
1983+ Where a single value is specified,
1984+ it has the same meaning as a range with identical startpoint and endpoint.
1985+ User agents must swap the computed value of the startpoint and endpoint of the range
1986+ in order to forbid decreasing ranges.
1987+ Both endpoints are inclusive.
1988+ The ranges are used in the <a href="#font-matching-algorithm">Font Matching Algorithm</a> below.
19891989
19901990 The auto values for these three descriptors have the following effects:
19911991
19921992 - For font selection purposes, the font is selected as if the appropriate initial value is chosen
19931993 - For variation axis clamping, clamping does not occur
19941994
1995- The value for these font face style attributes
1996- is used in place of the style implied by the underlying font data.
1997- This allows authors to combine faces in flexible combinations,
1998- even in situations where the original font data was arranged differently.
1999- User agents that implement synthetic bolding and obliquing
2000- must only apply synthetic styling in cases
2001- where the font descriptors imply this is needed,
2002- rather than based on the style attributes implied by the font data.
2003- However, variation values applied to fonts defined with '@font-face'
2004- will be clamped to both the values specified in these descriptors
2005- as well as the values supported by the font file itself.
1995+ The value for these font face style attributes
1996+ is used in place of the style implied by the underlying font data.
1997+ This allows authors to combine faces in flexible combinations,
1998+ even in situations where the original font data was arranged differently.
1999+ User agents that implement synthetic bolding and obliquing
2000+ must only apply synthetic styling in cases
2001+ where the font descriptors imply this is needed,
2002+ rather than based on the style attributes implied by the font data.
2003+ However, variation values applied to fonts defined with '@font-face'
2004+ will be clamped to both the values specified in these descriptors
2005+ as well as the values supported by the font file itself.
20062006
2007- <div class="example">
2008- The font descriptors defined in this section
2009- are used for selecting a font
2010- from within the set of fonts defined by ''@font-face'' rules for a given family.
2007+ <div class="example">
2008+ The font descriptors defined in this section
2009+ are used for selecting a font
2010+ from within the set of fonts defined by ''@font-face'' rules for a given family.
20112011
2012- Consider a family containing a single, regular face:
2012+ Consider a family containing a single, regular face:
20132013
2014- <pre>
2015- @font-face {
2016- font-family: BaskervilleSimple;
2017- src: url(baskerville-regular.woff);
2018- }
2019- </pre>
2014+ <pre>
2015+ @font-face {
2016+ font-family: BaskervilleSimple;
2017+ src: url(baskerville-regular.woff);
2018+ }
2019+ </pre>
20202020
2021- Unstyled text would display using the regular face
2022- defined in the ''@font-face'' rule:
2021+ Unstyled text would display using the regular face
2022+ defined in the ''@font-face'' rule:
20232023
2024- <figure><img alt="regular face display" src="images/fiddlesticks-regular.png" width="373" ></figure>
2024+ <figure><img alt="regular face display" src="images/fiddlesticks-regular.png" width="373" ></figure>
20252025
2026- However, italic text would display in most user agents
2027- using synthetically obliqued glyphs from the regular face,
2028- since a separate italic face is not defined:
2026+ However, italic text would display in most user agents
2027+ using synthetically obliqued glyphs from the regular face,
2028+ since a separate italic face is not defined:
20292029
2030- <figure><img alt="synthetic italics display" src="images/fiddlesticks-synitalics.png" width="373" ></figure>
2030+ <figure><img alt="synthetic italics display" src="images/fiddlesticks-synitalics.png" width="373" ></figure>
20312031
2032- Now consider a family for which an actual italic face is defined:
2032+ Now consider a family for which an actual italic face is defined:
20332033
2034- <pre>
2035- @font-face {
2036- font-family: BaskervilleFull;
2037- src: url(baskerville-regular.woff);
2038- }
2034+ <pre>
2035+ @font-face {
2036+ font-family: BaskervilleFull;
2037+ src: url(baskerville-regular.woff);
2038+ }
20392039
2040- @font-face {
2041- font-family: BaskervilleFull;
2042- src: url(baskerville-italic.woff);
2043- font-style: italic;
2044- }
2045- </pre>
2040+ @font-face {
2041+ font-family: BaskervilleFull;
2042+ src: url(baskerville-italic.woff);
2043+ font-style: italic;
2044+ }
2045+ </pre>
20462046
2047- The second ''@font-face'' rule
2048- defines the font resource <code> baskerville-italic.woff</code>
2049- to have style attributes of normal weight, normal stretch and italic style.
2050- When displaying italic text,
2051- the user agent will use this font,
2052- since it's the closest match for italic text.
2053- Thus, the text will display using glyphs designed by a type designer
2054- rather than using synthetically obliqued glyphs from the regular face:
2047+ The second ''@font-face'' rule
2048+ defines the font resource <code> baskerville-italic.woff</code>
2049+ to have style attributes of normal weight, normal stretch and italic style.
2050+ When displaying italic text,
2051+ the user agent will use this font,
2052+ since it's the closest match for italic text.
2053+ Thus, the text will display using glyphs designed by a type designer
2054+ rather than using synthetically obliqued glyphs from the regular face:
20552055
2056- <figure><img alt="real italics display" src="images/fiddlesticks-italics.png" width="373" ></figure>
2056+ <figure><img alt="real italics display" src="images/fiddlesticks-italics.png" width="373" ></figure>
20572057
2058- See the section on <a href="#font-style-matching">font matching</a>
2059- for more complete details of the process used
2060- to select a particular face within a font family.
2061- </div>
2058+ See the section on <a href="#font-style-matching">font matching</a>
2059+ for more complete details of the process used
2060+ to select a particular face within a font family.
2061+ </div>
20622062
20632063<h3 id="unicode-range-desc">
20642064Character range: the 'unicode-range' descriptor</h3>
0 commit comments