O'Reilly logo

HTML, XHTML, and CSS Bible, Fifth Edition by Steven M. Schafer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 29. Font Properties

IN THIS CHAPTER

  • Understanding Fonts

  • Font Types

  • Font Sizing

  • Font Styling

  • Line Spacing

  • Embedding Fonts in a Document

As previously mentioned throughout this book, the Web began as a vehicle for displaying very plain documents. The documents in question were of the research variety, needing only basic font handling, tables for data display, and the inclusion of graphics.

However, the Web has come a long way from that simple beginning. As more entities embraced the medium, the technology became more robust and able to handle more desktop publishing–like capabilities. Today's Web technologies can produce documents almost as rich in content and presentation as those produced by modern, dedicated publishing programs.

The most important characteristics are typography and layout. This chapter covers typography—namely, fonts—and how CSS handles them.

Understanding Fonts

Fonts are stylized collections of letters and symbols, known as glyphs. Fonts can be used to convey information—for example, specialized fonts can provide special characters or symbols. Although fonts can be quite different from one another, they share the same basic characteristics, as shown in Figure 29.1.

Font characteristics

Figure 29.1. Font characteristics

These elements are defined as follows:

  • Baseline—The line on which glyphs of the font sit

  • Ascension—The highest point reached by most capital glyphs in the font. Note that technically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required