Skip to content

May 30, 2010

Google Font API

font_api-128

Google added something new and slick recently – the ability to embed non-standard fonts in web pages as a web service called the Google Font API. It’s pretty easy to tweak a CSS file and your page headers to use this and there are about 15 or 16 font families to choose from ranging from fancy cursives to old-English style text. I added the following to my headers on my GonZoville site:

1
2
    <link href='http://fonts.googleapis.com/css?family=IM+Fell+English'
        rel='stylesheet' type='text/css'>

and then changed the CSS for the various headers to include:

1
    font-family: 'IM Fell English', arial, serif;

and voila, I have nice old-world style text in my article and sidebar headers. Awesome. For headers and the like this is a great way to do something fancy and/or unique without relying on a Flash-based plugin or off-screen rendering techniques.

Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.

No related posts.

Read more from Technology

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments