Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Text Styling and Other Basics > How do I use fonts other than those ...

2.24. How do I use fonts other than those installed on most users’ computers?

When we discussed font-family at the beginning of this chapter, I mentioned that you have to be careful about selecting fonts, as there are only a few fonts that you can safely assume are on most users’ computers. However, CSS provides a way to use other fonts, too, by loading a font file from the server.

2.24.1. Solution

In theory, we can import a new font using the font-face property:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial