Yet Another Google Announcement: Google Font API and Directory

By HTMLGoodies Staff

Google made yet another announcement at its Google I/O 2010 conference, announcing the Google Font API and Google Font Directory. The Font Directory will initially include 19 licensed fonts such as serif, san-serif, script and fixed-width and the Font API can be utilized by websites using HTML or JavaScript.

By using a single line of code, web developers will be able to use the Font Library's fonts without the font needing to be installed on their visitors' computer or mobile device. Before the Font API and Library, companies such as TypeKit and Kernest provides fonts as services.

Using a font on a web page is easy--developers add a special stylesheet link to their web page and then use the font in a CSS style, like this:

<html>
  <head>
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
    <style>
      body {
        font-family: 'Tangerine', serif;
        font-size: 48px;
      }
    </style>
  </head>
  <body>
    <h1>Making the Web Beautiful!</h1>
  </body>
</html>
For more information, check out the Getting Started guide for Google Font API.

View Full Article



Make a Comment

Loading Comments...

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.
  •  
  •  
  •  
Thanks for your registration, follow us on our social networks to keep up-to-date