• Home
  • About
  • Contact
  • Freelance
  • Portfolio

Archive for date: July 29th, 2010

  • Follow us on Twitter
  • Join our Facebook Group
  • RSS

Adding Google Fonts to your Web designs

this entry has 0 Comments/ in Design, Web / by Joey
July 29, 2010

Google recently announced their new Google Font API which allows users to embed open source Web-friendly fonts directly into their designs. All it takes? A simple CSS call. But we’ll get to that in a minute.

Resources:
Google Font Directory
Google Font API: Getting started
Google Font API: WebFont loader Javascript library
Google Font API: Technical Considerations*

* Of course browser compatibility is important. And, as usual, Internet Explorer is the dunce.

Anyway, let’s get on to the cool stuff…

1. Choose your font
Hit up the Google Font Directory and decide which one(s) you want. Yes, you can have more than one. Then, click on the font and check out the different levels and variants. The most important piece here though is grabbing the code. Click on the “Get the code” tab and copy that CSS link.

Looks like this:
<link href=’http://fonts.googleapis.com/css?family=Cantarell’ rel=’stylesheet’ type=’text/css’>

You can also select different styles (regular, bold, italic, etc.) which will add on the extra parameters to the link.

Looks like this:
<link href=’http://fonts.googleapis.com/css?family=Cantarell:regular,italic,bold,bolditalic’ rel=’stylesheet’ type=’text/css’>

And if you’re feeling the @import, feel free to do this:

@import url(http://fonts.googleapis.com/css?family=Cantarell);

2. Let’s build a simple Web page for testing
Here is a link to a very simple design utilizing the Google Font Cantarell from above. Feel free to look through the code and try it yourself. You can download the code package here.

I’ll be updating this post with a few more examples as time goes on. I very much believe Google Fonts is in super beta right now. Fonts are a little messy but, after all, they are Web fonts. I’m hoping they will add a few more variations and families in the future.

Stay tuned.

Pages

  • AAN
  • Clients
  • SND China 中国
  • About
  • Contact
  • Portfolio

Categories

  • Design
  • Featured
  • Graphics
  • iPad
  • Life
  • Media
  • Mobile
  • Rand
  • Random
  • Tutorials
  • Update
  • Web
  • Wedding
  • Work

Archive

  • August 2011
  • May 2011
  • March 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010

Interesting links

Besides are some interesting links for you! Enjoy your stay :)

Pages

  • AAN
  • Clients
  • SND China 中国
  • About
  • Contact
  • Portfolio

Categories

  • Design
  • Featured
  • Graphics
  • iPad
  • Life
  • Media
  • Mobile
  • Rand
  • Random
  • Tutorials
  • Update
  • Web
  • Wedding
  • Work

Archive

  • August 2011
  • May 2011
  • March 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
© Copyright - joeymarburger
  • Send us Mail
  • Follow us on Twitter
  • Join our Facebook Group
  • Subscribe to our RSS Feed


Real Time Web Analytics