Google Makes Custom Web Typography Ridiculously Easy

By
Jolie O'Dell
 on 
Google Makes Custom Web Typography Ridiculously Easy
Mashable Image
Credit:

Back in May, Google rolled out its Font Directory and the Google Fonts API. The idea was that these tools would make it simpler for designers and devs to embed a wider range of fonts in their sites and applications.

The previewer takes a few steps out of that process by giving you an idea of how a given typeface will look on your site; letting you adjust the font size and weight; letting you tinker with the leading, kerning and tracking; generating a number of drop shadows if you require them; and generating the code you need to make the magic happen.

It's pretty hot. Here's what it looks like:

Mashable Image
Credit:

If you click "Toggle controls," you can see what the typeface looks like sans-grid, sans-controls on a plain white screen.

Once you're done tinkering, you'll see a dynamically generated code sample beneath the preview area. Your code will look something like this:

Mashable Image
Credit:

Then, just copy and paste the stylesheet link and the CSS into your pages. That's it; you're done, and your site has a lovely, interesting new font. We tried it out ourselves, and it worked even better than expected.

All the fonts in Google's library are open source. Previously, Google’s Font API could be integrated into websites using HTML or a JavaScript WebFont Loader that the company co-developed with Typekit.

The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!