Google Font API….holy AWESOME!

Ok, for those of you who don’t subscribe to, or haven’t heard the news, Google has released Google Font API Beta. You can watch the video tutorial by Jeffrey Way here.

Here is the quick and dirty of it though. This works in a the same way as @font-face does.

1) Go here (
2) Click on font-directory beta button
3) Find a font you like and click on the ‘Click to embed…’ link
4) Click on get the code
5) Copy and paste the link tag into your document’s head


<link href='' rel='stylesheet' type='text/css'>

6) Add the font-family to the style sheet


h1 { font-family: 'Cantarell', arial, serif; }

And you are done.

This is in beta right now, so they only have about 20 fonts right now. So at the moment, I will still be using and @font-face. But once Google’s Font Directy grows, this will probably be my go to place for custom fonts.

jQuery junkBox

This method, without the value, returns the text within the matched element (stips out the html). With the value, it will insert the text into the element.

$('p').text('Hello from The Web Machine');


Leave a Reply