Google Font API: Add beautiful web fonts on your web page [Web-design]

May 21, 2010 2:47 am by Jal

Web designers surely know the pain not to be able to use wide variety of fonts on their web-pages. There are these web-safe fonts that you need to remain stuck to because you don’t want your web-page to appear differently on different browsers. Of course there’s @font-face to help you out but it also has its own issues. Google offers Font API that helps you add web fonts to any web page.

Google Font API

The Google Font API includes:

  • A choice of high quality open source fonts.
  • Works in most browsers.
  • Extremely easy to use.

To use the API, all you need to do is to add a stylesheet link (shown below) in your HTML, just after the <head> tag.

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">

Using the above code you can use the ‘Tangerine’ font in your web page using CSS. As of now, Google offers these web fonts in a repository called ‘Google Font Directory’ which you can use in a similar manner. The fonts in the directory are all released under open source licenses so you can use them on any non-commercial or commercial project.

Some useful links:

Subscribe to TechExplorer, today! You must follow us on Twitter
Advertise here
Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Nice. helped me alot.

Thanks u r information

its very useful

Hi,

I wanted to let you know that I wrote a little plugin that makes it easy to use Google Web Fonts from within the Wordpress admin panel.

I hope you like it - http://easywebcoder.com/wordpress-plugins/google-w...

I welcome any feedback.

Jeff Sebring

Will check it out.. and probably feature it here. Thanks, Jeff.