Saturday, January 25, 2025

Yet Another Google Announcement: Google Font API and Directory

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.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Popular Articles

Featured