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.

’ascent’ (Descriptor)<br />

Value: <br />

Initial: undefined<br />

Media: visual<br />

This is the descriptor for the maximum unaccented height [p. 229] of the font. If<br />

the value is undefined, the descriptor is not used for matching. If this descriptor is<br />

used, the ’units-per-em’ [p. 218] descriptor must also be used.<br />

’descent’ (Descriptor)<br />

Value: <br />

Initial: undefined<br />

Media: visual<br />

This is the descriptor for the Maximum unaccented depth [p. 229] of the font. If<br />

the value is undefined, the descriptor is not used for matching. If this descriptor is<br />

used, the ’units-per-em’ [p. 218] descriptor must also be used.<br />

15.3.7 Descriptors for Synthesis: ’widths’, ’bbox’ and<br />

’definition-src’<br />

Synthesizing a font means, at minimum, matching the width metrics of the specified<br />

font. Therefore, for synthesis, this metric information must be available. Similarly,<br />

progressive rendering requires width metrics in order to avoid reflow of the<br />

content when the actual font has been loaded. Although the following descriptors<br />

are optional for a <strong>CSS2</strong> definition, some are required if synthesizing (or<br />

reflow-free progressive rendering) is desired by the author. Should the actual font<br />

become available, the substitute should be replaced by the actual font. Any of<br />

these descriptors that are present will be used to provide a better or faster<br />

approximation of the intended font.<br />

Of these descriptors, the most important are the ’widths’ descriptor and ’bbox’<br />

which are used to prevent text reflow should the actual font become available. In<br />

addition, the descriptors in the set of descriptors used for matching [p. 220] can<br />

be used to provide a better synthesis of the actual font appearance.<br />

’widths’ (Descriptor)<br />

Value: [ ]? [ ]+ [,[ ]? ]+]<br />

Initial: undefined<br />

Media: visual<br />

This is the descriptor for the glyph widths [p. 228] . The value is a<br />

comma-separated list of values each followed by one or more glyph<br />

widths. If this descriptor is used, the ’units-per-em’ [p. 218] descriptor must also<br />

be used.<br />

If the is omitted, a range of U+0-7FFFFFFF is assumed which<br />

covers all characters and their glyphs. If not enough glyph widths are given, the<br />

last in the list is replicated to cover that urange. If too many widths are provided,<br />

222

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

Saved successfully!

Ooh no, something went wrong!