• Home
  • About
  • Contact
  • Freelance
  • Portfolio

Archive for month: July, 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.

Tweet
Page 1 of 212

Pages

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

Categories

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

Archive

  • March 2012
  • 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 :)
Popular
  • Download Newseum’s Front Page PDFs as Mac OS X Screen...December 2, 2010, 10:17 am
  • So you want to be a mobile designer? Here’s the tools...October 25, 2010, 1:16 pm
  • Journalism, Meet Computer ScienceMay 10, 2011, 11:16 pm
  • Getting started with HTML5 Data VisualizationsDecember 8, 2010, 10:55 am
  • Flash is F*cking DeadJanuary 26, 2011, 1:29 am
Recent
  • The Post-Print WorldMarch 8, 2012, 1:42 am
  • How I Design Mobile AppsAugust 26, 2011, 8:05 am
  • Journalism, Meet Computer ScienceMay 10, 2011, 11:16 pm
  • Committees: Where Good Design Goes to DieMarch 30, 2011, 1:17 pm
  • Flash is F*cking DeadJanuary 26, 2011, 1:29 am
Comments
  • This is amazing. I didn't know this was possible. I just...December 2, 10:17 am by David Boyle
  • [...] my first entry with a post by Joey Marburger, a journalist...May 10, 11:16 pm by Computer Science and Journalism | tarif.haque
  • Hi Joey, thanks for posting. I'm a CS Student at Alabama,...May 10, 11:16 pm by Tarif Haque
  • Thanks for the wonderful resources.. I have read every chapter...December 8, 10:55 am by Techcrank
  • You could do that or you could have it run at startup under...December 2, 10:17 am by Joey
Tags
Academics Android Automator Creativity DC Design dj event one djs flying Fonts Google graphics Guidelines How-to HTML5 HTML5 Data Viz Icons indiana indianapolis Indy interactive iOS ipad iphone journalism Life Mac Media Music Newseum OG Media Photoshop Process Resources summits tech top10 Update Vectors Web webdev Wedding Work

Analytics by MixPanel

Real Time Web Analytics

Twitter

  • I’m still confused why #wmata uses handheld CB radios for primary communication. Seems easily hackable. 8 hours ago
  • Looks like a photo of the I-5 bridge that collapsed. king5.com/your-news/1365… cc @KING5Seattle 19 hours ago
  • Everything Apple needs to introduce at WWDC to appease the Internet via @justin carpeaqua.com/2013/05/16/eve… 20 hours ago
  • Prototyping to discover who should be involved. uie.com/brainsparks/20… 20 hours ago

Most Read

  • So you want to be a mobile designer? Here’s the tools you’ll need
  • Getting started with HTML5 Data Visualizations
  • Journalism, Meet Computer Science
  • How I Design Mobile Apps
  • Flash is F*cking Dead

Pages

  • AAN
  • About
  • Clients
  • Contact
  • Portfolio
  • Projects

© Copyright - joeymarburger
  • Send us Mail
  • Follow us on Twitter
  • Join our Facebook Group
  • Subscribe to our RSS Feed