Time for action – embedding a font from the Google Fonts directory

Google Fonts directory is a web font service that lists free-to-use web fonts. We will embed a web font chosen from the Google Fonts directory:

  1. Go to the Google Fonts directory site at http://google.com/fonts.
  2. In the font directory, there is a list of web fonts that are available under an open source license and can be used freely.
  3. Choose one of them and click on the font name to proceed to the next step. In this example, I used Droid Serif.
  4. After you click on a font, the font directory displays detailed information about the font. There are several actions that we can carry out here, such as preview the font, choose from variants, and most importantly, get the font embedding code. ...

Get HTML5 Game Development by Example : Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.