Skip to main content
O'Reilly home
    • Sign In
    • Try Now
    • Teams
    • Individuals
    • Features
      • Certifications
      • Interactive learning
      • Live online sessions
    • What’s New
    • O’Reilly for marketers

Get CSS Fonts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.

Start your free trial

CSS Fonts

Table of Contents
  1. Preface
    1. Conventions Used in This Book
    2. Safari® Books Online
    3. How to Contact Us
  2. 1. Fonts
    1. Font Families
      1. Using Generic Font Families
      2. Specifying a Font Family
        1. Using quotation marks
    2. Using @font-face
      1. Required Descriptors
        1. On Being Bulletproof
      2. Other Font Descriptors
        1. Restricting Character Range
      3. Combining Descriptors
    3. Font Weights
      1. How Weights Work
      2. Getting Bolder
      3. Lightening Weights
        1. The font-weight Descriptor
    4. Font Size
      1. Absolute Sizes
      2. Relative Sizes
      3. Percentages and Sizes
      4. Font Size and Inheritance
        1. Rounding for Display
        2. Keywords and Monospace Text
      5. Using Length Units
      6. Automatically Adjusting Size
    5. Font Style
      1. The font-style Descriptor
    6. Font Stretching
      1. The font-stretch Descriptor
    7. Font Kerning
    8. Font Variants
      1. Level 3 Values
        1. The font-variant Descriptor
    9. Font Features
      1. The font-feature-settings Descriptor
    10. Font Synthesis
    11. The font Property
      1. Adding the Line Height
      2. Using Shorthands Properly
      3. Using System Fonts
    12. Font Matching
    13. Summary
  3. About the Author
  4. Colophon
  5. Copyright

Get CSS Fonts now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.

Start your free trial

About O’Reilly

  • Teach/write/train
  • Careers
  • Community partners
  • Affiliate program
  • Diversity

Support

  • Contact us
  • Newsletters
  • Privacy policy
facebook-logo linkedin-logo youtube-logo

Download the O’Reilly App

Apple app store Google play store

Take O’Reilly online learning with you and learn anywhere, anytime on your phone and tablet.

  • Get unlimited access to books, videos, and live training.
  • Sync all your devices and never lose your place.
  • Learn even when there’s no signal with offline access.

Do not sell my personal information

Exercise your consumer rights by contacting us at donotsell@oreilly.com.

O'Reilly home

© 2021, O’Reilly Media, Inc. All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

Terms of service • Privacy policy • Editorial independence