22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

page can be displayed.<br />

Progressive rendering is a combination of download and one of the other<br />

methods; it provides a temporary substitute font (using name matching, intelligent<br />

matching, or synthesis) to allow content to be read while the requested font<br />

downloads. Once the real font has been successfully downloaded, it replaces the<br />

temporary font, hopefully without the need to reflow.<br />

Note. Progressive rendering requires metric information about the font in order<br />

to avoid re-layout of the content when the actual font has been loaded and<br />

rendered. This metric information is sufficiently verbose that it should only be<br />

specified at most once per font in a document.<br />

15.3.1 Font Descriptions and @font-face<br />

The font description provides the bridge between an author’s font specification<br />

and the font data, which is the data needed to format text and to render the<br />

abstract glyphs to which the characters map - the actual scalable outlines or<br />

bitmaps. Fonts are referenced by style sheet properties.<br />

The font description is added to the font database and then used to select the<br />

relevant font data. The font description contains descriptors such as the location<br />

of the font data on the Web, and characterizations of that font data. The font<br />

descriptors are also needed to match the style sheet font properties to particular<br />

font data. The <strong>level</strong> of detail of a font description can vary from just the name of<br />

the font up to a list of glyph widths.<br />

Font descriptors may be classified into three types:<br />

1. those that provide the link between the CSS usage of the font and the font<br />

description (these have the same names as the corresponding CSS font<br />

properties),<br />

2. the URI for the location of the font data,<br />

3. those that further characterize the font, to provide a link between the font<br />

description and the font data.<br />

All font descriptions are specified via a @font-face at-rule. The general form is:<br />

@font-face { }<br />

where the has the form:<br />

descriptor: value;<br />

descriptor: value;<br />

[...]<br />

descriptor: value;<br />

Each @font-face rule specifies a value for every font descriptor, either implicitly<br />

or explicitly. Those not given explicit values in the rule take the initial value listed<br />

with each descriptor in this specification. These descriptors apply solely within<br />

the context of the @font-face rule in which they are defined, and do not apply to<br />

document language elements. Thus, there is no notion of which elements the<br />

descriptors apply to, or whether the values are inherited by child elements.<br />

The available font descriptors are described in later sections of this specification.<br />

213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!