Google WebFonts API



The Google Font Directory provides high-quality web fonts that you can include in your pages using the Google Font API.

Benefits of the Google Font API include:
  • A choice of high quality open source fonts.
  • Works in most browsers.
  • Extremely easy to use.

The Google Font Directory lets you browse all the fonts available via the Google Font API. All fonts in the directory are available for use on your website under an open source license and are served by Google servers.

To use one of the fonts, browse to the one you want to embed, and include this in your <head> tag. Note: This is including the PT Serif font face as an example, but you can include any font you want.

<link href='http://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'>

And this in your CSS to style all your <h1>'s:
h1 { font-family: 'PT Serif', arial, serif; }