HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

Chapter 10


Font Families


Contents


10.1 Style Sheet vs Inline Styling............ 99
10.1.1 class=......................... 99
10.1.2 Class Names..................... 100
10.2 What Is A Font?................... 100
10.2.1 Word Processing Font Choices........... 101
10.2.2 Web Page Font Choices............... 101
10.2.3 Raster vs Vector................... 102
10.2.4 Copyright and Knock-Offs.............. 102
10.2.5 Good News, Bad News................ 103
10.3 Five Generic Font Families............. 103
10.3.1 Serif.......................... 104
10.3.2 Sans-serif....................... 104
10.3.3 Monospace...................... 105
10.3.4 Cursive........................ 105
10.3.5 Fantasy........................ 106
10.4 The Font Stack.................... 106
10.5 Defending Against Missing Fonts......... 109
10.6 Web Fonts....................... 110
10.6.1 Google Web Fonts (Free).............. 110
10.6.2 Web Fonts: fonts.com (Paid)............ 111
10.7 Special Glyphs.................... 111
10.8 Font and Text Attributes.............. 113

98

Free download pdf