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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents<br />

15 Fonts<br />

15.1 Introduction . . . . . . . . . . . . . . 196 .<br />

15.2 Font specification . . . . . . . . . . . . 197 .<br />

15.2.1 Font specification properties . . . . . . . . 198 .<br />

15.2.2 Font family: the ’font-family’ property . . . . . . 199 .<br />

15.2.3 Font styling: the ’font-style’, ’font-variant’, ’font-weight’ and<br />

’font-stretch’ properties . . . . . . . . . . . 200 .<br />

15.2.4 Font size: the ’font-size’ and ’font-size-adjust’ properties . 203 .<br />

15.2.5 Shorthand font property: the ’font’ property . . . . 207 .<br />

15.2.6 Generic font families . . . . . . . . . . 209 .<br />

serif . . . . . . . . . . . . . . 210 .<br />

sans-serif . . . . . . . . . . . . . 210 .<br />

cursive . . . . . . . . . . . . . . 211 .<br />

fantasy . . . . . . . . . . . . . . 211 .<br />

monospace . . . . . . . . . . . . . 212 .<br />

15.3 Font selection . . . . . . . . . . . . . 212 .<br />

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

15.3.2 Descriptors for Selecting a Font: ’font-family’, ’font-style’,<br />

’font-variant’, ’font-weight’, ’font-stretch’ and ’font-size’ . . . 215 .<br />

15.3.3 Descriptors for Font Data Qualification: ’unicode-range’ . 217 .<br />

15.3.4 Descriptor for Numeric Values: ’units-per-em’ . . . . 218 .<br />

15.3.5 Descriptor for Referencing: ’src’ . . . . . . . 218 .<br />

15.3.6 Descriptors for Matching: ’panose-1’, ’stemv’, ’stemh’, ’slope’,<br />

’cap-height’, ’x-height’, ’ascent’, and ’descent’ . . . . . 220 .<br />

15.3.7 Descriptors for Synthesis: ’widths’, ’bbox’ and ’definition-src’ 222 .<br />

15.3.8 Descriptors for Alignment: ’baseline’, ’centerline’, ’mathline’, and<br />

’topline’ . . . . . . . . . . . . . . . 223 .<br />

15.3.9 Examples . . . . . . . . . . . . 224 .<br />

15.4 Font Characteristics . . . . . . . . . . . . 226 .<br />

15.4.1 Introducing Font Characteristics . . . . . . . 226 .<br />

15.4.2 Full font name . . . . . . . . . . . 226 .<br />

15.4.3 Coordinate units on the em square . . . . . . 227 .<br />

15.4.4 Central Baseline . . . . . . . . . . . 227 .<br />

15.4.5 Font Encoding . . . . . . . . . . . 227 .<br />

15.4.6 Font family name . . . . . . . . . . . 228 .<br />

15.4.7 Glyph widths . . . . . . . . . . . . 228 .<br />

15.4.8 Horizontal stem width . . . . . . . . . . 228 .<br />

15.4.9 Height of uppercase glyphs . . . . . . . . 228 .<br />

15.4.10 Height of lowercase glyphs . . . . . . . . 228 .<br />

15.4.11 Lower Baseline . . . . . . . . . . . 229 .<br />

15.4.12 Mathematical Baseline . . . . . . . . . 229 .<br />

195

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

Saved successfully!

Ooh no, something went wrong!